diff options
author | Matthias Klose <doko@ubuntu.com> | 2004-08-16 11:35:51 (GMT) |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2004-08-16 11:35:51 (GMT) |
commit | a2542bee597cbbc382d17ad6bd7ad4fce09d71b8 (patch) | |
tree | e90e031dda0c1fdad7f8d09117803bdf7e4840bd /Python | |
parent | d3fe2395b4f85f307d437f5b5b1f69e297d1fe11 (diff) | |
download | cpython-a2542bee597cbbc382d17ad6bd7ad4fce09d71b8.zip cpython-a2542bee597cbbc382d17ad6bd7ad4fce09d71b8.tar.gz cpython-a2542bee597cbbc382d17ad6bd7ad4fce09d71b8.tar.bz2 |
The attached patch fixes FTBFS on GNU/k*BSD. The problem happens on GNU/k*BSD
because GNU/k*BSD uses gnu pth to provide pthreads, but will also happen on any
system that does the same.
python fails to build because it doesn't detect gnu pth in pthread
emulation. See C comments in patch for details.
patch taken from http://bugs.debian.org/264315
Diffstat (limited to 'Python')
-rw-r--r-- | Python/thread.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Python/thread.c b/Python/thread.c index 8bc958f..0294365 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -7,6 +7,16 @@ #include "Python.h" + +#ifndef _POSIX_THREADS +/* This means pthreads are not implemented in libc headers, hence the macro + not present in unistd.h. But they still can be implemented as an external + library (e.g. gnu pth in pthread emulation) */ +# ifdef HAVE_PTHREAD_H +# include <pthread.h> /* _POSIX_THREADS */ +# endif +#endif + #ifndef DONT_HAVE_STDIO_H #include <stdio.h> #endif |