diff options
author | Michael W. Hudson <mwh@python.net> | 2005-09-30 08:17:40 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2005-09-30 08:17:40 (GMT) |
commit | 963dbdd74a921da6ab61c482fea57b5de07a2a9b (patch) | |
tree | abd871580af5f7d1ae629ab1883ff04283a896e8 | |
parent | bc3710f83d52e6cdd91b779a06fdb777b62f322d (diff) | |
download | cpython-963dbdd74a921da6ab61c482fea57b5de07a2a9b.zip cpython-963dbdd74a921da6ab61c482fea57b5de07a2a9b.tar.gz cpython-963dbdd74a921da6ab61c482fea57b5de07a2a9b.tar.bz2 |
Fix bug:
[ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code)
(note that this only happens in a threads-disabled build).
Will forward port momentarily.
-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 9d0ba31..52ff151 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; |