Skip to content

Commit d21744a

Browse files
committed
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.
1 parent f9acc59 commit d21744a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/thread_pthread.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ typedef struct {
120120
*/
121121
static void _init_thread _P0()
122122
{
123+
#if defined(_AIX) && defined(__GNUC__)
124+
pthread_init();
125+
#endif
123126
}
124127

125128
/*

0 commit comments

Comments
 (0)