summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-09-10 03:04:40 +0000
committerGuido van Rossum <guido@python.org>1998-09-10 03:04:40 +0000
commit68e3d24f09fd988e883ce330bf39841d8ca8b924 (patch)
treeb24be1a4190d77fccb0220594b6f7a72bd3d00bb /Python/thread_pthread.h
parent618538e3260934017a854bab76b641d6a19a3629 (diff)
downloadcpython-68e3d24f09fd988e883ce330bf39841d8ca8b924.tar.gz
Apparently on AIX when using gcc you need to call pthread_init()
(which is not a POSIX threads call!). Reported and confirmed by Brad Howes.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 995ef51dc5..24f8f4e368 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -120,6 +120,9 @@ typedef struct {
*/
static void _init_thread _P0()
{
+#if defined(_AIX) && defined(__GNUC__)
+ pthread_init();
+#endif
}
/*