From ae573b560d0e59a2a32e0e6c20a5522e52fb8b2c Mon Sep 17 00:00:00 2001 From: George Hopkins Date: Thu, 31 May 2018 13:00:01 +0200 Subject: [PATCH] Disable backtraces Signed-off-by: George Hopkins --- 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 // For QT_REQUIRE_VERSION #include -#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 #include @@ -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