vp-build/srcpkgs/kdeconnect/patches/fix-execinfo-detection-for-...

22 lines
523 B
Diff

--- core/core_debug.cpp 2017-09-18 14:49:46.000000000 -0400
+++ core/core_debug.cpp 2017-12-13 04:51:52.296660144 -0500
@@ -22,7 +22,8 @@
Q_LOGGING_CATEGORY(KDECONNECT_CORE, "kdeconnect.core")
-#ifdef Q_OS_LINUX
+#include <features.h>
+#ifdef __GLIBC__
#include <execinfo.h>
#include <stdlib.h>
#include <unistd.h>
@@ -30,7 +31,7 @@
void logBacktrace()
{
-#ifdef Q_OS_LINUX
+#ifdef __GLIBC__
void* array[32];
size_t size = backtrace (array, 32);
char** strings = backtrace_symbols (array, size);