From a290ddfdc9cd9453886d433060c5132095d916c4 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 28 Aug 2016 12:52:59 +0200 Subject: [PATCH] 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: https://github.com/nodejs/node/issues/8233 PR-URL: https://github.com/nodejs/node/pull/8308 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- src/backtrace_posix.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backtrace_posix.cc b/src/backtrace_posix.cc index 231cc03000d80a..8fd798757a544a 100644 --- a/src/backtrace_posix.cc +++ b/src/backtrace_posix.cc @@ -4,7 +4,9 @@ #include #endif -#if defined(__linux__) && !defined(__GLIBC__) || defined(_AIX) +#if defined(__linux__) && !defined(__GLIBC__) || \ + defined(__UCLIBC__) || \ + defined(_AIX) #define HAVE_EXECINFO_H 0 #else #define HAVE_EXECINFO_H 1