From d837de8669a2c0eee835d81d9105e21172c8efc0 Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Sat, 16 Jun 2018 10:01:19 +0200 Subject: [PATCH] Fix gui/main.cpp build with musl Picked from VoidLinux: https://github.com/void-linux/void-packages/commit/188bc4852af59e20f60b186e7acaaaa4b8ce51ab#diff-413d61b1a38989fbf79759fb57901b99d629706587f21aa4b1b19fb8ef23fd4b --- gui/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/main.cpp b/gui/main.cpp index 3424e94f7..f3851a0ef 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -266,7 +266,7 @@ static void installDebugMessageHandler(const QString &cmdLine) qInstallMessageHandler(cantataQtMsgHandler); } -#if defined Q_OS_LINUX && defined __GNUC__ +#if defined Q_OS_LINUX && defined __GNUC__ && defined __GLIBC__ #include #include #include @@ -346,7 +346,7 @@ static void sigHandler(int i) int main(int argc, char *argv[]) { - #if defined Q_OS_LINUX && defined __GNUC__ + #if defined Q_OS_LINUX && defined __GNUC__ && defined __GLIBC__ signal(SIGSEGV, sigHandler); #endif QThread::currentThread()->setObjectName("GUI");