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.
This commit is contained in:
Marc Reisner 2025-07-25 21:09:54 -05:00 committed by Karl Williamson
parent 1e0ff1da73
commit ccaf98b0cb
3 changed files with 0 additions and 8 deletions

View File

@ -229,7 +229,6 @@ case "$usethreads" in
d_setpwent_r='undef'
d_srand48_r='undef'
d_strerror_r='undef'
ccflags="$ccflags -DNEED_PTHREAD_INIT"
case "$cc" in
*gcc*)
ccflags="-D_THREAD_SAFE $ccflags"

View File

@ -315,7 +315,6 @@ case "$usethreads" in
d_srand48_r='undef'
d_strerror_r='undef'
ccflags="$ccflags -DNEED_PTHREAD_INIT"
case "$cc" in
*gcc*)
ccflags="-D_THREAD_SAFE $ccflags"

View File

@ -436,12 +436,6 @@ extern PERL_THREAD_LOCAL void *PL_current_context;
# endif /* PERL_SET_CONTEXT */
#endif /* PERL_THREAD_LOCAL */
#ifndef INIT_THREADS
# ifdef NEED_PTHREAD_INIT
# define INIT_THREADS pthread_init()
# endif
#endif
#ifndef ALLOC_THREAD_KEY
# define ALLOC_THREAD_KEY \
STMT_START { \