Skip to content

Commit 6112b91

Browse files
miss-islingtonjcea
andcommitted
bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446) (#16450)
(cherry picked from commit 52d1b86) Co-authored-by: Jesús Cea <jcea@jcea.es>
1 parent 39a0c75 commit 6112b91

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
@@ -10489,6 +10489,9 @@ then
1048910489
$as_echo "#define _REENTRANT 1" >>confdefs.h
1049010490

1049110491
posix_threads=yes
10492+
if test "$ac_sys_system" = "SunOS"; then
10493+
CFLAGS="$CFLAGS -D_REENTRANT"
10494+
fi
1049210495
elif test "$ac_cv_kpthread" = "yes"
1049310496
then
1049410497
CC="$CC -Kpthread"

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3079,6 +3079,9 @@ then
30793079
# Defining _REENTRANT on system with POSIX threads should not hurt.
30803080
AC_DEFINE(_REENTRANT)
30813081
posix_threads=yes
3082+
if test "$ac_sys_system" = "SunOS"; then
3083+
CFLAGS="$CFLAGS -D_REENTRANT"
3084+
fi
30823085
elif test "$ac_cv_kpthread" = "yes"
30833086
then
30843087
CC="$CC -Kpthread"

0 commit comments

Comments
 (0)