diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 42643ef5d0..a824da9776 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -123,7 +123,7 @@ #include #include #include -#ifdef __GNUC__ +#ifdef __GLIBC__ #include /* for backtrace() */ #endif @@ -490,7 +490,7 @@ _umem_logging_init(void) static void sig_handler(int signo) { struct sigaction action; -#ifdef __GNUC__ /* backtrace() is a GNU extension */ +#ifdef __GLIBC__ /* backtrace() is a GNU extension */ int nptrs; void *buffer[BACKTRACE_SZ];