diff options
author | Guido van Rossum <guido@python.org> | 1998-09-10 03:04:40 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-09-10 03:04:40 (GMT) |
commit | d21744a1dd1fb3daefdba552bb7307bd1358da2f (patch) | |
tree | 9534217bb1fde5f51971b5d3b5a54b160d1ffac3 /Python/thread_pthread.h | |
parent | f9acc59c55784e1de247554c3639e9b11b398c61 (diff) | |
download | cpython-d21744a1dd1fb3daefdba552bb7307bd1358da2f.zip cpython-d21744a1dd1fb3daefdba552bb7307bd1358da2f.tar.gz cpython-d21744a1dd1fb3daefdba552bb7307bd1358da2f.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index 995ef51..24f8f4e 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 } /* |