void-packages/srcpkgs/qbittorrent/patches/musl-execinfo.patch

24 lines
572 B
Diff

--- src/app/main.cpp 2016-03-29 22:24:47.000000000 +0200
+++ src/app/main.cpp 2016-04-12 10:42:35.621054446 +0200
@@ -59,8 +59,10 @@
#ifdef Q_OS_UNIX
#include <signal.h>
+#if defined(__GLIBC__)
#include <execinfo.h>
#include "stacktrace.h"
+#endif
#endif // Q_OS_UNIX
#ifdef STACKTRACE_WIN
@@ -395,7 +395,9 @@
reportToUser(str1);
reportToUser(sigName);
reportToUser(str2);
+#if defined(__GLIBC__)
print_stacktrace(); // unsafe
+#endif
#endif // !defined Q_OS_WIN && !defined Q_OS_HAIKU
#ifdef STACKTRACE_WIN
StraceDlg dlg; // unsafe