diff options
author | Guido van Rossum <guido@python.org> | 2000-09-19 00:46:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-09-19 00:46:46 (GMT) |
commit | 9e8181b809c0dc40f86d66ce7e51db83aaeccd20 (patch) | |
tree | 905b001aa2fe3c15cc51668151974dfb05dd51d4 /Python/thread.c | |
parent | 0344424793599e005b7071dd0338f508ac0d5168 (diff) | |
download | cpython-9e8181b809c0dc40f86d66ce7e51db83aaeccd20.zip cpython-9e8181b809c0dc40f86d66ce7e51db83aaeccd20.tar.gz cpython-9e8181b809c0dc40f86d66ce7e51db83aaeccd20.tar.bz2 |
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.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/thread.c b/Python/thread.c index 9c75c2f..f366a71 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" |