Skip to content

Commit a290ddf

Browse files
committed
src: unbreak build when compiling against uclibc
It seems that it is possible with some toolchains for both `__GLIBC__` and `__UCLIBC__` to be defined, confusing our "do we have execinfo.h?" logic. Assume that when `__UCLIBC__` is defined, we are dealing with a libc that does not have execinfo.h. Fixes: #8233 PR-URL: #8308 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a01e8bc commit a290ddf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backtrace_posix.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
#include <features.h>
55
#endif
66

7-
#if defined(__linux__) && !defined(__GLIBC__) || defined(_AIX)
7+
#if defined(__linux__) && !defined(__GLIBC__) || \
8+
defined(__UCLIBC__) || \
9+
defined(_AIX)
810
#define HAVE_EXECINFO_H 0
911
#else
1012
#define HAVE_EXECINFO_H 1

0 commit comments

Comments
 (0)