aboutsummaryrefslogtreecommitdiffstats
path: root/testing/uwsgi/0002-Check-for-GNU-libc-instead-of-linux-for-use-of-execi.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-02-10 13:58:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-02-10 16:11:06 +0000
commitf6028422aa3fb9ab7b94e4540e1093b37bbafaf8 (patch)
tree44af7f4880336e181e2c17ac2dd45ce243766a8f /testing/uwsgi/0002-Check-for-GNU-libc-instead-of-linux-for-use-of-execi.patch
parent62ceb9126266ce5690887435ee17dec1acae0cab (diff)
downloadaports-f6028422aa3fb9ab7b94e4540e1093b37bbafaf8.tar.gz
aports-f6028422aa3fb9ab7b94e4540e1093b37bbafaf8.tar.bz2
aports-f6028422aa3fb9ab7b94e4540e1093b37bbafaf8.tar.xz
testing/uwsgi: upgrade to 2.0.1 and fix musl build
Diffstat (limited to 'testing/uwsgi/0002-Check-for-GNU-libc-instead-of-linux-for-use-of-execi.patch')
-rw-r--r--testing/uwsgi/0002-Check-for-GNU-libc-instead-of-linux-for-use-of-execi.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/uwsgi/0002-Check-for-GNU-libc-instead-of-linux-for-use-of-execi.patch b/testing/uwsgi/0002-Check-for-GNU-libc-instead-of-linux-for-use-of-execi.patch
new file mode 100644
index 0000000000..8ab4d9ffff
--- /dev/null
+++ b/testing/uwsgi/0002-Check-for-GNU-libc-instead-of-linux-for-use-of-execi.patch
@@ -0,0 +1,31 @@
+From ab68dc90d3a6e3ae660adb65cf8a020d91eb8f09 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 10 Feb 2014 12:17:18 +0000
+Subject: [PATCH 2/4] 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>
+---
+ core/uwsgi.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/core/uwsgi.c b/core/uwsgi.c
+index 67b175b..b3b25ae 100644
+--- a/core/uwsgi.c
++++ b/core/uwsgi.c
+@@ -1690,7 +1690,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(__APPLE__) && !defined(NO_EXECINFO)) || defined(UWSGI_HAS_EXECINFO)
+
+ #include <execinfo.h>
+
+--
+1.8.5.3
+