void-packages/srcpkgs/uwsgi/patches/musl-fix-python.patch

14 lines
367 B
Diff

diff --git a/plugins/python/uwsgi_python.h b/plugins/python/uwsgi_python.h
index 0c5c1c8..5c0dc6d 100644
--- plugins/python/uwsgi_python.h
+++ plugins/python/uwsgi_python.h
@@ -1,4 +1,8 @@
#include <uwsgi.h>
+/* seems like Python.h explicitlyl redefines _GNU_SOURCE */
+#ifdef _GNU_SOURCE
+#undef _GNU_SOURCE
+#endif
#include <Python.h>
#include <frameobject.h>