From: Michael W. Hudson Date: Fri, 30 Sep 2005 08:20:24 +0000 (+0000) Subject: Forward port bugfix: X-Git-Tag: v2.5a0~1327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ce7da6c5e97c45256f6570858f5a73a138910892;p=thirdparty%2FPython%2Fcpython.git Forward port bugfix: [ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code) (note that this only happens in a threads-disabled build). --- diff --git a/Python/pystate.c b/Python/pystate.c index 3ac799ce8862..6584cda775a8 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -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;