From: Guido van Rossum Date: Thu, 10 Sep 1998 03:04:40 +0000 (+0000) Subject: Apparently on AIX when using gcc you need to call pthread_init() X-Git-Tag: v1.5.2a2~314 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d21744a1dd1fb3daefdba552bb7307bd1358da2f;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 995ef51dc52c..24f8f4e368b3 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 } /*