diff options
author | Guido van Rossum <guido@python.org> | 1997-04-29 21:48:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-04-29 21:48:34 (GMT) |
commit | d11bfdd9f5710efb083898b4377d432be5e4c861 (patch) | |
tree | 480b99b92cba1c06d89d329066ad4b198a4e4c1b | |
parent | 1ed5e5768429f425f5bcb9f03bf04179dcca569f (diff) | |
download | cpython-d11bfdd9f5710efb083898b4377d432be5e4c861.zip cpython-d11bfdd9f5710efb083898b4377d432be5e4c861.tar.gz cpython-d11bfdd9f5710efb083898b4377d432be5e4c861.tar.bz2 |
Ugly hack for SGI IRIX 6.2. Apparently _POSIX_THREADS is defined even
when the pthread package is not installed. configure knows better, so
#undef _POSIX_THREADS when pthread.h does not exist.
-rw-r--r-- | Python/thread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c index ad7dd5c..2d04256 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -49,6 +49,12 @@ extern char *getenv(); #include <unistd.h> #endif +#ifdef __sgi +#ifndef HAVE_PTHREAD_H /* XXX Need to check in configure.in */ +#undef _POSIX_THREADS +#endif +#endif + #include "thread.h" #ifdef __ksr__ |