Blob Blame History Raw
diff -uNr a/plugins/python/uwsgi_python.h b/plugins/python/uwsgi_python.h
--- a/plugins/python/uwsgi_python.h	2021-10-06 07:22:45.000000000 +0200
+++ b/plugins/python/uwsgi_python.h	2022-02-19 18:39:10.929895062 +0100
@@ -1,3 +1,7 @@
+// This needs to be defined before Python.h is included
+// to indicate that the code uses Py_ssize_t properly
+#define PY_SSIZE_T_CLEAN
+
 #include <uwsgi.h>
 #include <Python.h>