File fix-py313.patch of Package failed_apache2-mod_wsgi

*** Begin Patch
*** Add File: mod_wsgi-5.0.0/src/server/wsgi_python.h
+/*
+ * Additional compatibility declarations for newer Python versions
+ * This file is added by packaging to provide a forward declaration for
+ * PySys_AddWarnOption which may not be exposed in some Python headers
+ * (e.g. Python 3.13+), avoiding implicit function declaration errors.
+ */
+
+#ifndef MOD_WSGI_WSGI_PYTHON_H_ADDED
+#define MOD_WSGI_WSGI_PYTHON_H_ADDED
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* PySys_AddWarnOption declaration to avoid implicit declaration errors
+ * in builds against Python versions where the declaration is not present
+ * in the system headers (packaging workaround).
+ */
+extern void PySys_AddWarnOption(const char *);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* MOD_WSGI_WSGI_PYTHON_H_ADDED */
+
*** End Patch
openSUSE Build Service is sponsored by