pmaports/kde/falkon/disable-backtraces.patch

36 lines
1.1 KiB
Diff
Raw Normal View History

2018-06-01 18:26:41 +00:00
From ae573b560d0e59a2a32e0e6c20a5522e52fb8b2c Mon Sep 17 00:00:00 2001
From: George Hopkins <george-hopkins@null.net>
Date: Thu, 31 May 2018 13:00:01 +0200
Subject: [PATCH] Disable backtraces
Signed-off-by: George Hopkins <george-hopkins@null.net>
---
src/main/main.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/main.cpp b/src/main/main.cpp
index c1af1b6..cdf938d 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -22,7 +22,7 @@
#include <QMessageBox> // For QT_REQUIRE_VERSION
#include <iostream>
-#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__) || defined(__HAIKU__)
+#if (defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__) || defined(__HAIKU__)) && defined(HAVE_BACKTRACE)
#include <signal.h>
#include <execinfo.h>
@@ -129,7 +129,7 @@ int main(int argc, char* argv[])
qInstallMessageHandler(&msgHandler);
#endif
-#if defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__)
+#if (defined(Q_OS_LINUX) || defined(__GLIBC__) || defined(__FreeBSD__) || defined(__HAIKU__)) && defined(HAVE_BACKTRACE)
signal(SIGSEGV, falkon_signal_handler);
#endif
--
2.7.4