Skip to content

Commit 52d1b86

Browse files
authored
bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (#16446)
1 parent e8650a4 commit 52d1b86

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
In Solaris family, we must be sure to use ``-D_REENTRANT``.
2+
Patch by Jesús Cea Avión.

configure

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10500,6 +10500,9 @@ then
1050010500
$as_echo "#define _REENTRANT 1" >>confdefs.h
1050110501

1050210502
posix_threads=yes
10503+
if test "$ac_sys_system" = "SunOS"; then
10504+
CFLAGS="$CFLAGS -D_REENTRANT"
10505+
fi
1050310506
elif test "$ac_cv_kpthread" = "yes"
1050410507
then
1050510508
CC="$CC -Kpthread"

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,6 +3063,9 @@ then
30633063
# Defining _REENTRANT on system with POSIX threads should not hurt.
30643064
AC_DEFINE(_REENTRANT)
30653065
posix_threads=yes
3066+
if test "$ac_sys_system" = "SunOS"; then
3067+
CFLAGS="$CFLAGS -D_REENTRANT"
3068+
fi
30663069
elif test "$ac_cv_kpthread" = "yes"
30673070
then
30683071
CC="$CC -Kpthread"

0 commit comments

Comments
 (0)