void-packages/srcpkgs/clementine/patches/musl.patch

23 lines
662 B
Diff

diff --git a/ext/libclementine-common/core/logging.cpp b/ext/libclementine-common/core/logging.cpp
index 8012c0c..ce77c77 100644
--- ext/libclementine-common/core/logging.cpp
+++ 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));