summaryrefslogtreecommitdiff
path: root/Python/thread.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-09-19 00:46:46 +0000
committerGuido van Rossum <guido@python.org>2000-09-19 00:46:46 +0000
commit37d6a0a13709ae96159f16c8bfbef1bfc403b1d6 (patch)
tree29babbd50bbc4548059d06d243a6281958ede596 /Python/thread.c
parent3937075298e9d4b17e9fb3e4855ccedd57efbccb (diff)
downloadcpython-37d6a0a13709ae96159f16c8bfbef1bfc403b1d6.tar.gz
Make better use of GNU Pth -- patch by Andy Dustman.
I can't test this, so I'm just checking it in with blind faith in Andy. I've tested that it doesn't broeak a non-Pth build on Linux. Changes include: - There's a --with-pth configure option. - Instead of _GNU_PTH, we test for HAVE_PTH. - Better signal handling. - (The config.h.in file is regenerated in a slightly different order.)
Diffstat (limited to 'Python/thread.c')
-rw-r--r--Python/thread.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/thread.c b/Python/thread.c
index 9c75c2f9da..f366a71ec7 100644
--- a/Python/thread.c
+++ b/Python/thread.c
@@ -109,13 +109,14 @@ void PyThread_init_thread(void)
#include "thread_lwp.h"
#endif
-#ifdef _GNU_PTH
+#ifdef HAVE_PTH
#include "thread_pth.h"
-#else
+#undef _POSIX_THREADS
+#endif
+
#ifdef _POSIX_THREADS
#include "thread_pthread.h"
#endif
-#endif
#ifdef C_THREADS
#include "thread_cthread.h"