don't assume __linux__ means __GLIBC__ on BACKTRACES_ENABLE
check for __GLIBC__ instead of __linux__ as musl libc doesn't provide execinfo.h fixes compilation on Alpine Linux and Void Linux musl arches.
This commit is contained in:
parent
33d643124d
commit
1d75697d9b
@ -21,7 +21,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(BACKTRACES_ENABLE) && \
|
#if !defined(BACKTRACES_ENABLE) && \
|
||||||
(defined(__linux__) || (defined(__APPLE__) && defined(__MACH__)) )
|
(defined(__GLIBC__) || (defined(__APPLE__) && defined(__MACH__)) )
|
||||||
# define BACKTRACES_ENABLE 1
|
# define BACKTRACES_ENABLE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user