aboutsummaryrefslogtreecommitdiffstats
path: root/main/deadbeef/6d39333448dd7c48fb3f4e07ff5d7e05d0527fff.patch
blob: 3de7b1d61a9bdf46b0b294d938dc919206609065 (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
35
36
37
38
39
40
From 6d39333448dd7c48fb3f4e07ff5d7e05d0527fff Mon Sep 17 00:00:00 2001
From: Carlo Landmeter <clandmeter@gmail.com>
Date: Wed, 29 Oct 2014 10:36:57 +0100
Subject: [PATCH] musl libc does not have execinfo.h

---
 main.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c
index d7dab49..797889c 100644
--- a/main.c
+++ b/main.c
@@ -51,7 +51,7 @@
 #include <sys/fcntl.h>
 #include <sys/errno.h>
 #include <signal.h>
-#ifdef __linux__
+#ifdef __GLIBC__
 #include <execinfo.h>
 #endif
 #include <unistd.h>
@@ -642,7 +642,7 @@ player_mainloop (void) {
     }
 }
 
-#ifdef __linux__
+#ifdef __GLIBC__
 void
 sigsegv_handler (int sig) {
     fprintf (stderr, "Segmentation Fault\n");
@@ -761,7 +761,7 @@ main (int argc, char *argv[]) {
     }
 #endif
 
-#ifdef __linux__
+#ifdef __GLIBC__
     signal (SIGSEGV, sigsegv_handler);
 #endif
     setlocale (LC_ALL, "");