]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
don't assume __linux__ means __GLIBC__ on BACKTRACES_ENABLE 1356/head
authormaxice8 <thinkabit.ukim@gmail.com>
Sat, 6 Oct 2018 00:23:45 +0000 (21:23 -0300)
committermaxice8 <thinkabit.ukim@gmail.com>
Sat, 6 Oct 2018 00:23:45 +0000 (21:23 -0300)
check for __GLIBC__ instead of __linux__ as musl libc doesn't provide
execinfo.h

fixes compilation on Alpine Linux and Void Linux musl arches.

programs/fileio.c

index ed3a29cda3dba682b2cb5f0eaee1cbcb3f5c40bb..1a73a75e4e4fe78a281dd75ee5532681bd076023 100644 (file)
@@ -21,7 +21,7 @@
 #endif
 
 #if !defined(BACKTRACES_ENABLE) && \
-   (defined(__linux__) || (defined(__APPLE__) && defined(__MACH__)) )
+   (defined(__GLIBC__) || (defined(__APPLE__) && defined(__MACH__)) )
 #  define BACKTRACES_ENABLE 1
 #endif