File mingw-python3_pthread_threadid.patch of Package mingw-python3

diff -rupN --no-dereference Python-3.11.8/Python/thread_pthread.h Python-3.11.8-new/Python/thread_pthread.h
--- Python-3.11.8/Python/thread_pthread.h	2024-02-06 22:21:21.000000000 +0100
+++ Python-3.11.8-new/Python/thread_pthread.h	2024-02-16 22:21:28.381345887 +0100
@@ -352,6 +352,9 @@ PyThread_get_thread_native_id(void)
 #elif defined(__NetBSD__)
     lwpid_t native_id;
     native_id = _lwp_self();
+#elif defined(__MINGW32__)
+    pthread_t native_id;
+    native_id = pthread_self();
 #endif
     return (unsigned long) native_id;
 }
openSUSE Build Service is sponsored by