23 lines
666 B
Diff
23 lines
666 B
Diff
diff --git a/ext/libclementine-common/core/logging.cpp b/ext/libclementine-common/core/logging.cpp
|
|
index 8012c0c..ce77c77 100644
|
|
--- a/ext/libclementine-common/core/logging.cpp
|
|
+++ b/ext/libclementine-common/core/logging.cpp
|
|
@@ -21,7 +21,7 @@
|
|
#include <cxxabi.h>
|
|
|
|
#include <QtGlobal>
|
|
-#ifdef Q_OS_UNIX
|
|
+#if defined Q_OS_UNIX && defined __GLIBC__
|
|
#include <execinfo.h>
|
|
#endif
|
|
|
|
@@ -315,7 +315,7 @@ QString DemangleSymbol(const QString& symbol) {
|
|
}
|
|
|
|
void DumpStackTrace() {
|
|
-#ifdef Q_OS_UNIX
|
|
+#if defined Q_OS_UNIX && defined __GLIBC__
|
|
void* callstack[128];
|
|
int callstack_size =
|
|
backtrace(reinterpret_cast<void**>(&callstack), sizeof(callstack));
|