summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2005-09-14 17:49:54 +0000
committerGuido van Rossum <guido@python.org>2005-09-14 17:49:54 +0000
commit4e6a5d988afa210db317940a3d5a7bde0d144804 (patch)
tree423ebfc3614315e270c1215d5998c5bdfa938f73 /Python/thread.c
parent5bff7b934d692e992dde5100cd517d7ea3f89123 (diff)
downloadcpython-4e6a5d988afa210db317940a3d5a7bde0d144804.tar.gz
- Changes donated by Elemental Security to make it work on HP-UX 11 on
Itanium2 with HP's 64-bit compiler (SF patch #1225212).
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c
index 4c0edfb936..5e7fc6ccc1 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -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 */