void-packages/srcpkgs/root/patches/python3.11.patch

16 lines
525 B
Diff

Python 3.11 restructures some headers, so fix the includes here.
--- a/bindings/pyroot/cppyy/CPyCppyy/src/CPPOverload.cxx
+++ b/bindings/pyroot/cppyy/CPyCppyy/src/CPPOverload.cxx
@@ -1,7 +1,9 @@
// Bindings
#include "CPyCppyy.h"
#include "structmember.h" // from Python
-#if PY_VERSION_HEX >= 0x02050000
+#if PY_VERSION_HEX >= 0x030B0000
+#include <Python.h> // from Python
+#elif PY_VERSION_HEX >= 0x02050000
#include "code.h" // from Python
#else
#include "compile.h" // from Python