summaryrefslogtreecommitdiffstats
path: root/testing/deadbeef/deadbeef-execinfo.patch
blob: cd125d9d0ac0371f4ae92de2de632704fbfdb21a (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
--- deadbeef-0.4.4/main.c
+++ deadbeef-0.4.4.mod/main.c
@@ -38,7 +38,7 @@
 #include <sys/fcntl.h>
 #include <sys/errno.h>
 #include <signal.h>
-#ifdef __linux__
+#ifdef HAVE_EXECINFO_H
 #include <execinfo.h>
 #endif
 #ifdef HAVE_CONFIG_H
@@ -450,7 +450,7 @@
 }
 #endif
 
-#ifdef __linux__
+#ifdef HAVE_EXECINFO_H
 void
 sigsegv_handler (int sig) {
     fprintf (stderr, "Segmentation Fault\n");
@@ -521,7 +521,7 @@
 
 int
 main (int argc, char *argv[]) {
-#ifdef __linux__
+#ifdef HAVE_EXECINFO_H
     signal (SIGSEGV, sigsegv_handler);
 #endif
     setlocale (LC_ALL, "");