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 authored and Fishrock123 committed Aug 28, 2016
1 parent 4e368c5 commit 2c2a21ab56f93684e148df5be29f9828c05660aa
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/backtrace_posix.cc
View
@@ -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 2c2a21a

Please sign in to comment.