aboutsummaryrefslogtreecommitdiffstats
path: root/community/scribus/no-execinfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/scribus/no-execinfo.patch')
-rw-r--r--community/scribus/no-execinfo.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/scribus/no-execinfo.patch b/community/scribus/no-execinfo.patch
new file mode 100644
index 00000000000..c03e8d1e0e0
--- /dev/null
+++ b/community/scribus/no-execinfo.patch
@@ -0,0 +1,33 @@
+dirty hack to remove execinfo
+diff --git a/scribus/util.cpp b/scribus/util.cpp
+--- a/scribus/util.cpp
++++ b/scribus/util.cpp
+@@ -43,7 +43,7 @@
+
+ #include <csignal>
+
+-#if !defined(_WIN32) && !defined(Q_OS_MACOS)
++#if !defined(_WIN32) && !defined(Q_OS_MACOS) && defined(__GLIBC__)
+ #include <execinfo.h>
+ #include <cxxabi.h>
+ #endif
+--- a/scribus/util_debug.cpp
++++ b/scribus/util_debug.cpp
+@@ -24,7 +24,7 @@
+ #include <QDateTime>
+ #include <QtGlobal>
+
+-#if !defined(_WIN32) && !defined(Q_OS_MACOS)
++#if !defined(_WIN32) && !defined(Q_OS_MACOS) && defined(__GLIBC__)
+ #include <execinfo.h>
+ #include <cxxabi.h>
+ #endif
+@@ -53,7 +53,7 @@
+ */
+ void printBacktrace ( int nFrames )
+ {
+-#if !defined(_WIN32) && !defined(Q_OS_MACOS) && !defined(Q_OS_OPENBSD) && !defined(Q_OS_FREEBSD)
++#if !defined(_WIN32) && !defined(Q_OS_MACOS) && !defined(Q_OS_OPENBSD) && !defined(Q_OS_FREEBSD) && defined(__GLIBC__)
+ void ** trace = new void*[nFrames + 1];
+ char **messages = ( char ** ) nullptr;
+ int i, trace_size = 0;