diff --git a/OpenIPMI-py313compat.patch b/OpenIPMI-py313compat.patch index 60845b4..fccde75 100644 --- a/OpenIPMI-py313compat.patch +++ b/OpenIPMI-py313compat.patch @@ -1,12 +1,13 @@ -diff -ur OpenIPMI-2.0.34/swig/OpenIPMI.i OpenIPMI-2.0.34-python/swig/OpenIPMI.i ---- OpenIPMI-2.0.34/swig/OpenIPMI.i 2024-02-11 19:52:41.555777279 +0100 -+++ OpenIPMI-2.0.34-python/swig/OpenIPMI.i 2024-02-11 20:11:59.061132776 +0100 -@@ -38,6 +38,7 @@ - #include - #include - #include -+#include - - #ifdef HAVE_GETADDRINFO - #include -Only in OpenIPMI-2.0.34-python/swig: OpenIPMI.i~ +diff --git a/swig/python/OpenIPMI_lang.i b/swig/python/OpenIPMI_lang.i +index 67221fd..d150d81 100644 +--- a/swig/python/OpenIPMI_lang.i ++++ b/swig/python/OpenIPMI_lang.i +@@ -541,7 +541,7 @@ static void OI_put_py_state(int current) + #else + static void init_lang(void) + { +- PyEval_InitThreads(); ++ /* nothing */ + } + #define OI_PY_STATE PyGILState_STATE + #define OI_PY_STATE_GET() PyGILState_Ensure()