bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446) (#16449)
(cherry picked from commit 52d1b86bde
)
Co-authored-by: Jesús Cea <jcea@jcea.es>
This commit is contained in:
parent
52bdd414ed
commit
8750bce988
|
@ -0,0 +1,2 @@
|
|||
In Solaris family, we must be sure to use ``-D_REENTRANT``.
|
||||
Patch by Jesús Cea Avión.
|
|
@ -10500,6 +10500,9 @@ then
|
|||
$as_echo "#define _REENTRANT 1" >>confdefs.h
|
||||
|
||||
posix_threads=yes
|
||||
if test "$ac_sys_system" = "SunOS"; then
|
||||
CFLAGS="$CFLAGS -D_REENTRANT"
|
||||
fi
|
||||
elif test "$ac_cv_kpthread" = "yes"
|
||||
then
|
||||
CC="$CC -Kpthread"
|
||||
|
|
|
@ -3063,6 +3063,9 @@ then
|
|||
# Defining _REENTRANT on system with POSIX threads should not hurt.
|
||||
AC_DEFINE(_REENTRANT)
|
||||
posix_threads=yes
|
||||
if test "$ac_sys_system" = "SunOS"; then
|
||||
CFLAGS="$CFLAGS -D_REENTRANT"
|
||||
fi
|
||||
elif test "$ac_cv_kpthread" = "yes"
|
||||
then
|
||||
CC="$CC -Kpthread"
|
||||
|
|
Loading…
Reference in New Issue