1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/qt-creator/fix-execinfo.patch
2014-03-03 14:59:03 +00:00

29 lines
754 B
Diff

--- 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;