diff options
author | Guido van Rossum <guido@python.org> | 2005-09-14 17:54:39 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2005-09-14 17:54:39 (GMT) |
commit | e42f446482780553e3e0b3faae1f0300c0a3206d (patch) | |
tree | c96951105e736f934268b994685008e2989a64ea /Python/thread.c | |
parent | 0a8c3ef536b4b73cf365a3081d7a824e3fb9ec15 (diff) | |
download | cpython-e42f446482780553e3e0b3faae1f0300c0a3206d.zip cpython-e42f446482780553e3e0b3faae1f0300c0a3206d.tar.gz cpython-e42f446482780553e3e0b3faae1f0300c0a3206d.tar.bz2 |
(backport from HEAD)
- 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.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c index 4c0edfb..5e7fc6c 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 */ |