summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2005-09-30 08:20:24 (GMT)
committerMichael W. Hudson <mwh@python.net>2005-09-30 08:20:24 (GMT)
commitce7da6c5e97c45256f6570858f5a73a138910892 (patch)
treed315b76bcc81cb39c666c65dc0aab6eee312c022 /Python
parent484d9a409a94e719329b41edaed38c1b16b8de7d (diff)
downloadcpython-ce7da6c5e97c45256f6570858f5a73a138910892.zip
cpython-ce7da6c5e97c45256f6570858f5a73a138910892.tar.gz
cpython-ce7da6c5e97c45256f6570858f5a73a138910892.tar.bz2
Forward port bugfix:
[ 1307978 ] Unsatisfied symbols: _PyGILState_NoteThreadState (code) (note that this only happens in a threads-disabled build).
Diffstat (limited to 'Python')
-rw-r--r--Python/pystate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index 3ac799c..6584cda 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;