Files
MINGW-packages/mingw-w64-python-psutil/0002-pyparsepid.patch
2023-10-27 17:58:41 +02:00

13 lines
379 B
Diff

--- a/psutil/_psutil_common.h
+++ b/psutil/_psutil_common.h
@@ -56,6 +56,9 @@ static const int PSUTIL_CONN_NONE = 128;
#define SIZEOF_PID_T PSUTIL_SIZEOF_PID_T // set as a macro in setup.py
#endif
+#if __MINGW32__
+ #define _Py_PARSE_PID "i"
+#endif
// _Py_PARSE_PID is Python 3 only, but since it's private make sure it's
// always present.
#ifndef _Py_PARSE_PID