Skip to content

Commit ccaf98b

Browse files
FractalBoykhwilliamson
authored andcommitted
Remove NEED_PTHREAD_INIT macro and its usage in AIX hints
pthread_init is not a real function (in POSIX or AIX pthread), and doesn't appear to have ever existed. Trying to use it causes a compiler failure when using ibm-clang.
1 parent 1e0ff1d commit ccaf98b

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

hints/aix_3.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ case "$usethreads" in
229229
d_setpwent_r='undef'
230230
d_srand48_r='undef'
231231
d_strerror_r='undef'
232-
ccflags="$ccflags -DNEED_PTHREAD_INIT"
233232
case "$cc" in
234233
*gcc*)
235234
ccflags="-D_THREAD_SAFE $ccflags"

hints/aix_4.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ case "$usethreads" in
315315
d_srand48_r='undef'
316316
d_strerror_r='undef'
317317
318-
ccflags="$ccflags -DNEED_PTHREAD_INIT"
319318
case "$cc" in
320319
*gcc*)
321320
ccflags="-D_THREAD_SAFE $ccflags"

thread.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,6 @@ extern PERL_THREAD_LOCAL void *PL_current_context;
436436
# endif /* PERL_SET_CONTEXT */
437437
#endif /* PERL_THREAD_LOCAL */
438438

439-
#ifndef INIT_THREADS
440-
# ifdef NEED_PTHREAD_INIT
441-
# define INIT_THREADS pthread_init()
442-
# endif
443-
#endif
444-
445439
#ifndef ALLOC_THREAD_KEY
446440
# define ALLOC_THREAD_KEY \
447441
STMT_START { \

0 commit comments

Comments
 (0)