File mod_wsgi-py313-compat.patch of Package failed_apache2-mod_wsgi

*** Begin Patch
*** Update File: src/server/wsgi_python.h
@@
-#include <Python.h>
+#include <Python.h>
+
+/*
+ * Some newer Python headers may deprecate or not expose the prototype for
+ * PySys_AddWarnOption while the symbol is still available in the library.
+ * Declare it here for compatibility with such Python versions so that
+ * mod_wsgi can compile against newer development headers.
+ */
+#ifndef PySys_AddWarnOption
+extern void PySys_AddWarnOption(const char *);
+#endif
*** End Patch
openSUSE Build Service is sponsored by