mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 02:05:16 +03:00
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
dirty hack to remove execinfo
|
|
diff --git a/scribus/util.cpp b/scribus/util.cpp
|
|
index 97ae0db..25760dc 100644
|
|
--- a/scribus/util.cpp
|
|
+++ b/scribus/util.cpp
|
|
@@ -41,7 +41,7 @@ for which a new license (GPL+exception) is in place.
|
|
|
|
#include <csignal>
|
|
|
|
-#if !defined(_WIN32) && !defined(Q_OS_MAC)
|
|
+#if !defined(_WIN32) && !defined(Q_OS_MAC) && defined(__GLIBC__)
|
|
#include <execinfo.h>
|
|
#include <cxxabi.h>
|
|
#endif
|
|
diff --git a/scribus/util_debug.cpp b/scribus/util_debug.cpp
|
|
index 6563781..179f03d 100644
|
|
--- a/scribus/util_debug.cpp
|
|
+++ b/scribus/util_debug.cpp
|
|
@@ -24,7 +24,7 @@ for which a new license (GPL+exception) is in place.
|
|
#include <QDateTime>
|
|
#include <QtGlobal>
|
|
|
|
-#if !defined(_WIN32) && !defined(Q_OS_MAC)
|
|
+#if !defined(_WIN32) && !defined(Q_OS_MAC) && defined(__GLIBC__)
|
|
#include <execinfo.h>
|
|
#include <cxxabi.h>
|
|
#endif
|
|
@@ -53,7 +53,7 @@ void tDebug(const QString& message)
|
|
*/
|
|
void printBacktrace ( int nFrames )
|
|
{
|
|
-#if !defined(_WIN32) && !defined(Q_OS_MAC) && !defined(Q_OS_OPENBSD) && !defined(Q_OS_FREEBSD)
|
|
+#if !defined(_WIN32) && !defined(Q_OS_MAC) && !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;
|