21 lines
531 B
Diff
21 lines
531 B
Diff
--- a/logging.cpp 2017-09-22 21:33:36.030774014 +0200
|
|
+++ b/ext/libclementine-common/core/logging.cpp 2017-09-22 21:35:34.327766268 +0200
|
|
@@ -21,7 +21,7 @@
|
|
#include <QtGlobal>
|
|
|
|
#include <cxxabi.h>
|
|
-#ifdef Q_OS_UNIX
|
|
+#if defined Q_OS_UNIX && defined __GLIBC__
|
|
#include <execinfo.h>
|
|
#endif
|
|
|
|
@@ -249,7 +249,7 @@
|
|
}
|
|
|
|
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));
|