uwsgi-cgi: Fix compilation under uClibc-ng
authorRosen Penev <redacted>
Wed, 1 May 2019 02:26:58 +0000 (19:26 -0700)
committerRosen Penev <redacted>
Wed, 1 May 2019 17:09:43 +0000 (10:09 -0700)
execinfo.h is missing.

Signed-off-by: Rosen Penev <redacted>
net/uwsgi-cgi/Makefile
net/uwsgi-cgi/patches/010-uclibc-ng.patch [new file with mode: 0644]

index f57476eea32f805a0cbeacdb7466469538239922..6325391904b07111c64d425d2d70932afff5db8f 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uwsgi-cgi
 PKG_VERSION:=2.0.18
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL= \
        https://projects.unbit.it/downloads \
diff --git a/net/uwsgi-cgi/patches/010-uclibc-ng.patch b/net/uwsgi-cgi/patches/010-uclibc-ng.patch
new file mode 100644 (file)
index 0000000..e967320
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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>
git clone https://git.99rst.org/PROJECT