Permalink
Browse files

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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
bnoordhuis committed Aug 28, 2016
1 parent a01e8bc commit a290ddfdc9cd9453886d433060c5132095d916c4
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/backtrace_posix.cc
@@ -4,7 +4,9 @@
#include <features.h>
#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

0 comments on commit a290ddf

Please sign in to comment.