summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-29 21:48:34 +0000
committerGuido van Rossum <guido@python.org>1997-04-29 21:48:34 +0000
commit5c37c729c0c37701cd905a5ef689cf568125eaee (patch)
treeea99e9535f97c80554fd6522780623b02decfff7 /Python/thread.c
parente670473d20ade3c1cd42ece8ceed94f5011c92b5 (diff)
downloadcpython-5c37c729c0c37701cd905a5ef689cf568125eaee.tar.gz
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.
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c
index ad7dd5c76d..2d042568d5 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__