diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-02-10 12:17:18 +0000 |
---|---|---|
committer | Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com> | 2016-03-20 12:50:03 +0100 |
commit | 76a88042c329bc319d0c7ea60d5d703aa12ccfe8 (patch) | |
tree | 5cd5c6880819f592f3b1e2e9bc5216a8662268b3 | |
parent | 5c09584ad7ad1135944565eb84fcf93b1847ec6d (diff) | |
download | uwsgi-76a88042c329bc319d0c7ea60d5d703aa12ccfe8.tar.gz |
Check for GNU libc instead of linux for use of execinfo.h
Since execinfo.h is a GNU extension it makes more sense to check for GNU
than to assume that linux is GNU.
This is needed for building on linux with musl libc.
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
-rw-r--r-- | core/uwsgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/uwsgi.c b/core/uwsgi.c index 240b2084..c87929a1 100644 --- a/core/uwsgi.c +++ b/core/uwsgi.c @@ -1781,7 +1781,7 @@ void uwsgi_plugins_atexit(void) { void uwsgi_backtrace(int depth) { -#if defined(__linux__) || (defined(__APPLE__) && !defined(NO_EXECINFO)) || defined(UWSGI_HAS_EXECINFO) +#if (defined(__GLIBC__) && !defined(__UCLIBC__))|| (defined(__APPLE__) && !defined(NO_EXECINFO)) || defined(UWSGI_HAS_EXECINFO) #include <execinfo.h> |