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 #endif -#ifdef linux +#ifdef __GLIBC__ #include #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];