Skip to content

Commit 598f676

Browse files
authored
[2.7] bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446). (#16454)
(cherry picked from commit 52d1b86) Co-authored-by: Jesús Cea <[email protected]>
1 parent 90b4e49 commit 598f676

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
@@ -9602,6 +9602,9 @@ then
96029602
96039603
posix_threads=yes
96049604
THREADOBJ="Python/thread.o"
9605+
if test "$ac_sys_system" = "SunOS"; then
9606+
CFLAGS="$CFLAGS -D_REENTRANT"
9607+
fi
96059608
elif test "$ac_cv_kpthread" = "yes"
96069609
then
96079610
CC="$CC -Kpthread"

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2625,6 +2625,9 @@ then
26252625
AC_DEFINE(_REENTRANT)
26262626
posix_threads=yes
26272627
THREADOBJ="Python/thread.o"
2628+
if test "$ac_sys_system" = "SunOS"; then
2629+
CFLAGS="$CFLAGS -D_REENTRANT"
2630+
fi
26282631
elif test "$ac_cv_kpthread" = "yes"
26292632
then
26302633
CC="$CC -Kpthread"

0 commit comments

Comments
 (0)