Skip to content

Commit cbf04fd

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

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
@@ -10406,6 +10406,9 @@ then
1040610406

1040710407
posix_threads=yes
1040810408
THREADOBJ="Python/thread.o"
10409+
if test "$ac_sys_system" = "SunOS"; then
10410+
CFLAGS="$CFLAGS -D_REENTRANT"
10411+
fi
1040910412
elif test "$ac_cv_kpthread" = "yes"
1041010413
then
1041110414
CC="$CC -Kpthread"

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3056,6 +3056,9 @@ then
30563056
AC_DEFINE(_REENTRANT)
30573057
posix_threads=yes
30583058
THREADOBJ="Python/thread.o"
3059+
if test "$ac_sys_system" = "SunOS"; then
3060+
CFLAGS="$CFLAGS -D_REENTRANT"
3061+
fi
30593062
elif test "$ac_cv_kpthread" = "yes"
30603063
then
30613064
CC="$CC -Kpthread"

0 commit comments

Comments
 (0)