mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
Bring a bugfix enabling WITHOUT_THREADS build again.
Requested by: Mike Harding <mvh@ix.netcom.com> Obtained from: Python CVS
This commit is contained in:
parent
9ff22fa34d
commit
b9805fae01
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144165
27
lang/python/files/patch-Python::pystate.c
Normal file
27
lang/python/files/patch-Python::pystate.c
Normal file
@ -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;
|
27
lang/python24/files/patch-Python::pystate.c
Normal file
27
lang/python24/files/patch-Python::pystate.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user