aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2005-10-04 21:50:02 +0800
committerperky <perky@FreeBSD.org>2005-10-04 21:50:02 +0800
commit8e7deeb14769a3f54d8b100fb325c69728ce28d4 (patch)
tree18354f2eac7d04b36ea04ac382a64cc5b95395a2 /lang/python
parentd67f020fca6d2a087337feb40e6a0d81ef13c580 (diff)
downloadfreebsd-ports-graphics-8e7deeb14769a3f54d8b100fb325c69728ce28d4.tar.gz
freebsd-ports-graphics-8e7deeb14769a3f54d8b100fb325c69728ce28d4.tar.zst
freebsd-ports-graphics-8e7deeb14769a3f54d8b100fb325c69728ce28d4.zip
Bring a bugfix enabling WITHOUT_THREADS build again.
Requested by: Mike Harding <mvh@ix.netcom.com> Obtained from: Python CVS
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/files/patch-Python::pystate.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/lang/python/files/patch-Python::pystate.c b/lang/python/files/patch-Python::pystate.c
new file mode 100644
index 00000000000..a64496471c8
--- /dev/null
+++ b/lang/python/files/patch-Python::pystate.c
@@ -0,0 +1,27 @@
+===================================================================
+RCS file: /cvsroot/python/python/dist/src/Python/pystate.c,v
+retrieving revision 2.38.2.3
+retrieving revision 2.38.2.4
+diff -u -r2.38.2.3 -r2.38.2.4
+--- Python/pystate.c 2005/09/23 08:14:40 2.38.2.3
++++ Python/pystate.c 2005/09/30 08:17:40 2.38.2.4
+@@ -53,7 +53,9 @@
+ PyThreadState *_PyThreadState_Current = NULL;
+ PyThreadFrameGetter _PyThreadState_GetFrame = NULL;
+
++#ifdef WITH_THREAD
+ static void _PyGILState_NoteThreadState(PyThreadState* tstate);
++#endif
+
+
+ PyInterpreterState *
+@@ -188,7 +190,9 @@
+ tstate->c_profileobj = NULL;
+ tstate->c_traceobj = NULL;
+
++#ifdef WITH_THREAD
+ _PyGILState_NoteThreadState(tstate);
++#endif
+
+ HEAD_LOCK();
+ tstate->next = interp->tstate_head;