[Python-checkins] python/dist/src/Python thread.c,2.54,2.55

gvanrossum@users.sourceforge.net gvanrossum at users.sourceforge.net
Wed Sep 14 19:49:58 CEST 2005


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18898/Python

Modified Files:
	thread.c 
Log Message:
- Changes donated by Elemental Security to make it work on HP-UX 11 on
  Itanium2 with HP's 64-bit compiler (SF patch #1225212).



Index: thread.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread.c,v
retrieving revision 2.54
retrieving revision 2.55
diff -u -d -r2.54 -r2.55
--- thread.c	10 Oct 2004 01:58:44 -0000	2.54
+++ thread.c	14 Sep 2005 17:49:54 -0000	2.55
@@ -45,6 +45,20 @@
 #define SUN_LWP
 #endif
 
+/* Check if we're running on HP-UX and _SC_THREADS is defined. If so, then
+   enough of the Posix threads package is implimented to support python 
+   threads.
+
+   This is valid for HP-UX 11.23 running on an ia64 system. If needed, add
+   a check of __ia64 to verify that we're running on a ia64 system instead
+   of a pa-risc system.
+*/
+#ifdef __hpux
+#ifdef _SC_THREADS
+#define _POSIX_THREADS
+#endif
+#endif
+
 #endif /* _POSIX_THREADS */
 
 



More information about the Python-checkins mailing list