void-packages/srcpkgs/icewm/patches/backtrace_on_glibc.patch
2015-05-30 09:04:42 +02:00

20 lines
358 B
Diff

--- src/misc.cc
+++ 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];