diff --git a/core/core_debug.cpp b/core/core_debug.cpp index 8d1fd92fb..4afe7d081 100644 --- a/core/core_debug.cpp +++ b/core/core_debug.cpp @@ -22,7 +22,7 @@ Q_LOGGING_CATEGORY(KDECONNECT_CORE, "kdeconnect.core") -#ifdef Q_OS_LINUX +#if defined(__GNU_LIBRARY__) #include #include #include @@ -30,7 +30,7 @@ Q_LOGGING_CATEGORY(KDECONNECT_CORE, "kdeconnect.core") 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);