]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bug:
authorMichael W. Hudson <mwh@python.net>
Fri, 30 Sep 2005 08:17:40 +0000 (08:17 +0000)
committerMichael W. Hudson <mwh@python.net>
Fri, 30 Sep 2005 08:17:40 +0000 (08:17 +0000)
1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)

(note that this only happens in a threads-disabled build).

Will forward port momentarily.

Python/pystate.c

index 9d0ba31a86e30aa9548fc22d7c9351cb05eccb31..52ff1511a05e39ccbb5eebbd24dbdbeeac151698 100644 (file)
@@ -53,7 +53,9 @@ static PyInterpreterState *interp_head = NULL;
 PyThreadState *_PyThreadState_Current = NULL;
 PyThreadFrameGetter _PyThreadState_GetFrame = NULL;
 
+#ifdef WITH_THREAD
 static void _PyGILState_NoteThreadState(PyThreadState* tstate);
+#endif
 
 
 PyInterpreterState *
@@ -188,7 +190,9 @@ PyThreadState_New(PyInterpreterState *interp)
                tstate->c_profileobj = NULL;
                tstate->c_traceobj = NULL;
 
+#ifdef WITH_THREAD
                _PyGILState_NoteThreadState(tstate);
+#endif
 
                HEAD_LOCK();
                tstate->next = interp->tstate_head;