diff options
author | Michael W. Hudson <mwh@python.net> | 2005-09-30 08:20:24 +0000 |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-09-30 08:20:24 +0000 |
commit | 40318ea46be804dc40582f24df0bd9b2ebbdcdca (patch) | |
tree | 5e78d97d695ff2ae115e0e5dc9bba2fc5049c320 /Python/pystate.c | |
parent | 3531ec83d7f281a25de6bc353da9a15f5d50cedc (diff) | |
download | cpython-40318ea46be804dc40582f24df0bd9b2ebbdcdca.tar.gz |
Forward port bugfix:
[ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)
(note that this only happens in a threads-disabled build).
Diffstat (limited to 'Python/pystate.c')
-rw-r--r-- | Python/pystate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 3ac799ce88..6584cda775 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; |