[Patches] [ python-Patches-1335054 ] Python 2.4.2 doesn't build with "--without-threads"

SourceForge.net noreply at sourceforge.net
Fri Oct 28 09:22:27 CEST 2005


Patches item #1335054, was opened at 2005-10-22 21:51
Message generated for change (Comment added) made by fperrad
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1335054&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Gunter Ohrner (interneci)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.4.2 doesn't build with "--without-threads"

Initial Comment:
Build fix is attached. (Not yet runtime tested.) 

----------------------------------------------------------------------

Comment By: Francois Perrad (fperrad)
Date: 2005-10-28 09:22

Message:
Logged In: YES 
user_id=1293818

Just an alternate patch :

--- pystate.c.orig	2005-10-27 17:35:32.000000000 +0200
+++ pystate.c	2005-10-27 17:47:16.000000000 +0200
@@ -42,10 +42,14 @@
 */
 static PyInterpreterState *autoInterpreterState = NULL;
 static int autoTLSkey = 0;
+
+static void _PyGILState_NoteThreadState(PyThreadState* 
tstate);
 #else
 #define HEAD_INIT() /* Nothing */
 #define HEAD_LOCK() /* Nothing */
 #define HEAD_UNLOCK() /* Nothing */
+
+#define _PyGILState_NoteThreadState(tstate)
 #endif
 
 static PyInterpreterState *interp_head = NULL;
@@ -53,8 +57,6 @@
 PyThreadState *_PyThreadState_Current = NULL;
 PyThreadFrameGetter _PyThreadState_GetFrame = NULL;
 
-static void _PyGILState_NoteThreadState(PyThreadState* 
tstate);
-
 
 PyInterpreterState *
 PyInterpreterState_New(void)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1335054&group_id=5470


More information about the Patches mailing list