diff --git a/Python/thread.c b/Python/thread.c index 0365f977d82b0e..8660e7cbad51f2 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -334,6 +334,11 @@ PyThread_GetInfo(void) #ifdef HAVE_PTHREAD_STUBS value = Py_NewRef(Py_None); +#else +#ifdef MS_WINDOWS + value = Py_NewRef(Py_None); +#elif defined(__wasi__) + value = Py_NewRef(Py_None); #else value = PyUnicode_FromString("pymutex"); if (value == NULL) { @@ -341,6 +346,8 @@ PyThread_GetInfo(void) return NULL; } #endif +#endif + PyStructSequence_SET_ITEM(threadinfo, pos++, value); #if (defined(_POSIX_THREADS) && defined(HAVE_CONFSTR) \ @@ -361,7 +368,6 @@ PyThread_GetInfo(void) return threadinfo; } - void _PyThread_FiniType(PyInterpreterState *interp) {