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