Commit 52d1b86b authored by Jesús Cea's avatar Jesús Cea Committed by GitHub

bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (#16446)

parent e8650a4f
In Solaris family, we must be sure to use ``-D_REENTRANT``.
Patch by Jesús Cea Avión.
...@@ -10500,6 +10500,9 @@ then ...@@ -10500,6 +10500,9 @@ then
$as_echo "#define _REENTRANT 1" >>confdefs.h $as_echo "#define _REENTRANT 1" >>confdefs.h
posix_threads=yes posix_threads=yes
if test "$ac_sys_system" = "SunOS"; then
CFLAGS="$CFLAGS -D_REENTRANT"
fi
elif test "$ac_cv_kpthread" = "yes" elif test "$ac_cv_kpthread" = "yes"
then then
CC="$CC -Kpthread" CC="$CC -Kpthread"
......
...@@ -3063,6 +3063,9 @@ then ...@@ -3063,6 +3063,9 @@ then
# Defining _REENTRANT on system with POSIX threads should not hurt. # Defining _REENTRANT on system with POSIX threads should not hurt.
AC_DEFINE(_REENTRANT) AC_DEFINE(_REENTRANT)
posix_threads=yes posix_threads=yes
if test "$ac_sys_system" = "SunOS"; then
CFLAGS="$CFLAGS -D_REENTRANT"
fi
elif test "$ac_cv_kpthread" = "yes" elif test "$ac_cv_kpthread" = "yes"
then then
CC="$CC -Kpthread" CC="$CC -Kpthread"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment