31 lines
841 B
Diff
31 lines
841 B
Diff
--- scribus/util.cpp 2019-07-31 00:35:04.000000000 +0200
|
|
+++ - 2019-09-17 22:29:18.301884583 +0200
|
|
@@ -40,7 +40,7 @@
|
|
|
|
#include <csignal>
|
|
|
|
-#if !defined(_WIN32) && !defined(Q_OS_MAC)
|
|
+#if defined(__GLIBC__)
|
|
#include <execinfo.h>
|
|
#include <cxxabi.h>
|
|
#endif
|
|
--- scribus/util_debug.cpp 2019-07-31 00:35:07.000000000 +0200
|
|
+++ - 2019-09-17 22:30:10.159216480 +0200
|
|
@@ -24,7 +24,7 @@
|
|
#include <QDateTime>
|
|
#include <QtGlobal>
|
|
|
|
-#if !defined(_WIN32) && !defined(Q_OS_MAC)
|
|
+#if defined(__GLIBC__)
|
|
#include <execinfo.h>
|
|
#include <cxxabi.h>
|
|
#endif
|
|
@@ -54,7 +54,7 @@
|
|
*/
|
|
void printBacktrace ( int nFrames )
|
|
{
|
|
-#if !defined(_WIN32) && !defined(Q_OS_MAC) && !defined(Q_OS_OPENBSD) && !defined(Q_OS_FREEBSD)
|
|
+#if defined(__GLIBC__)
|
|
void ** trace = new void*[nFrames + 1];
|
|
char **messages = ( char ** ) nullptr;
|
|
int i, trace_size = 0;
|