summaryrefslogtreecommitdiff
path: root/media-sound/cantata/files/cantata-2.4.2-main-musl.patch
blob: 492dc815854a765c9df833c9c2e588124e07738d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From d837de8669a2c0eee835d81d9105e21172c8efc0 Mon Sep 17 00:00:00 2001
From: Helmut Pozimski <helmut@pozimski.eu>
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 <execinfo.h>
 #include <unistd.h>
 #include <signal.h>
@@ -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");