Files
MINGW-packages/mingw-w64-python-psutil/0002-pyparsepid.patch
dragon-archer d72bf45862 python-psutil: update to 7.2.1
* fix all 3 patches
	* align patch offsets to new source code
	* handle several file renames
	* add mincore to linked libs for QueryInterruptTime
	* fix conflicting function prototypes
* make check() runnable
2026-01-14 12:24:53 +07:00

13 lines
385 B
Diff

--- a/psutil/arch/all/init.h
+++ b/psutil/arch/all/init.h
@@ -74,6 +74,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 was added in Python 3, but since it's private we make
// sure it's always present.
#ifndef _Py_PARSE_PID