summaryrefslogtreecommitdiffstats
path: root/testing/qt-creator/fix-execinfo.patch
blob: 418ff73d5b696dc3b8bbff2d9610fcb04d9fc2cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- qt-creator-opensource-src-3.0.1/src/plugins/debugger/shared/backtrace.cpp.orig
+++ qt-creator-opensource-src-3.0.1/src/plugins/debugger/shared/backtrace.cpp
@@ -31,7 +31,7 @@
 #include <QDebug>
 #include <QProcess>
 
-#if defined(Q_OS_LINUX)
+#if defined(__GLIBC__)
 #include <stdio.h>
 #include <signal.h>
 #include <execinfo.h>
@@ -44,7 +44,7 @@
 {
     if (maxdepth == -1)
         maxdepth = 200;
-#if defined(Q_OS_LINUX)
+#if defined(__GLIBC__)
     void *bt[200] = {0};
     qDebug() << "BACKTRACE:";
     int size = backtrace(bt, sizeof(bt) / sizeof(bt[0]));
@@ -71,7 +71,7 @@
 /*
 void installSignalHandlers()
 {
-#if defined(Q_OS_LINUX)
+#if defined(__GLIBC__)
     struct sigaction SignalAction;
 
     SignalAction.sa_sigaction = handler;