aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/icewm/backtrace_on_glibc.patch
blob: ceba2b7630a766471127416020a84e81621790b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/src/misc.cc b/src/misc.cc
index 8b7905a..1eee766 100644
--- a/src/misc.cc
+++ b/src/misc.cc
@@ -15,7 +15,7 @@
 #include <libgen.h>
 #endif
 
-#ifdef linux
+#ifdef __GLIBC__
 #include <execinfo.h>
 #endif
 
@@ -539,7 +539,7 @@ bool isreg(char const *path) {
 }
 
 void show_backtrace() {
-#ifdef linux
+#ifdef __GLIBC__
     const char head[] = "\nbacktrace:\n";
     const char tail[] = "end\n";
     void *array[20];