Kaydet (Commit) 55c14355 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix building without threads (closes #23877)

üst 3fbcafa4
......@@ -1299,8 +1299,12 @@ _Py_PrintFatalError(int fd)
return;
display_stack:
#ifdef WITH_THREAD
/* PyGILState_GetThisThreadState() works even if the GIL was released */
tstate = PyGILState_GetThisThreadState();
#else
tstate = PyThreadState_GET();
#endif
if (tstate == NULL) {
/* _Py_DumpTracebackThreads() requires the thread state to display
* frames */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment