20 lines
358 B
Diff
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];
|