diff --git a/core/core_debug.cpp b/core/core_debug.cpp --- a/core/core_debug.cpp +++ b/core/core_debug.cpp @@ -22,15 +22,15 @@ Q_LOGGING_CATEGORY(KDECONNECT_CORE, "kdeconnect.core") -#ifdef Q_OS_LINUX +#if defined(__GNU_LIBRARY__) #include #include #include #endif void logBacktrace() { -#ifdef Q_OS_LINUX +#if defined(__GNU_LIBRARY__) void* array[32]; size_t size = backtrace (array, 32); char** strings = backtrace_symbols (array, size);