packages/net/uwsgi-cgi/patches/010-uclibc-ng.patch
Rosen Penev 93b3d42dd5
uwsgi-cgi: Fix compilation under uClibc-ng
execinfo.h is missing.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-05-01 10:09:43 -07:00

11 lines
394 B
Diff

--- a/core/uwsgi.c
+++ b/core/uwsgi.c
@@ -1820,7 +1820,7 @@ void uwsgi_plugins_atexit(void) {
void uwsgi_backtrace(int depth) {
-#if defined(__GLIBC__) || (defined(__APPLE__) && !defined(NO_EXECINFO)) || defined(UWSGI_HAS_EXECINFO)
+#if (!defined(__UCLIBC__) && defined(__GLIBC__)) || (defined(__APPLE__) && !defined(NO_EXECINFO)) || defined(UWSGI_HAS_EXECINFO)
#include <execinfo.h>