diff options
author | Carlo Landmeter <[email protected]> | 2016-03-01 15:23:09 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-03-29 18:33:17 -0700 |
commit | 967798d04afc801e70bb12590e8325a32fb998dd (patch) | |
tree | 18380997380bccca9c5d3cdd51d9dc35e491b87f /cmd | |
parent | 1ad32f0a18657b3905bb127463e1a0653e0ef4ad (diff) |
Use the correct macro to include backtrace
execinfo.h and backtrace() are GNU extensions provided by glibc
and not by gcc, see:
http://www.gnu.org/software/libc/manual/html_mono/libc.html#Backtraces
Signed-off-by: Carlo Landmeter <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4453
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/ztest/ztest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c index 42643ef5d..a824da977 100644 --- a/cmd/ztest/ztest.c +++ b/cmd/ztest/ztest.c @@ -123,7 +123,7 @@ #include <math.h> #include <sys/fs/zfs.h> #include <libnvpair.h> -#ifdef __GNUC__ +#ifdef __GLIBC__ #include <execinfo.h> /* 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]; |