Browse Source

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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
v7.x
Ben Noordhuis 8 years ago
parent
commit
a290ddfdc9
  1. 4
      src/backtrace_posix.cc

4
src/backtrace_posix.cc

@ -4,7 +4,9 @@
#include <features.h> #include <features.h>
#endif #endif
#if defined(__linux__) && !defined(__GLIBC__) || defined(_AIX) #if defined(__linux__) && !defined(__GLIBC__) || \
defined(__UCLIBC__) || \
defined(_AIX)
#define HAVE_EXECINFO_H 0 #define HAVE_EXECINFO_H 0
#else #else
#define HAVE_EXECINFO_H 1 #define HAVE_EXECINFO_H 1

Loading…
Cancel
Save