Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
In Solaris family, we must be sure to use ``-D_REENTRANT``.
Patch by Jesús Cea Avión.
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down