Commit 50bee071 authored by Paul Eggert's avatar Paul Eggert

Port part of the AIX fix to Solaris.

* configure.ac (_REENTRANT): Define on Solaris if HAVE_PTHREAD.
This ports part of the recent AIX fix to Solaris.  It is needed
for the same reason that _THREAD_SAFE is needed on AIX, e.g., to
make sure that each thread has its own 'errno'.

Fixes: debbugs:17598
parent 859488bf
2014-06-14 Paul Eggert <eggert@cs.ucla.edu>
Port part of the AIX fix to Solaris (Bug#17598).
* configure.ac (_REENTRANT): Define on Solaris if HAVE_PTHREAD.
This ports part of the recent AIX fixes to Solaris. It is needed
for the same reason that _THREAD_SAFE is needed on AIX, e.g., to
make sure that each thread has its own 'errno'.
2014-06-11 Paul Eggert <eggert@cs.ucla.edu> 2014-06-11 Paul Eggert <eggert@cs.ucla.edu>
Backport fcntl.h AIX fix from the trunk (Bug#17598). Backport fcntl.h AIX fix from the trunk (Bug#17598).
......
...@@ -2079,10 +2079,14 @@ if test "$HAVE_PTHREAD" = yes; then ...@@ -2079,10 +2079,14 @@ if test "$HAVE_PTHREAD" = yes; then
# Some systems optimize for single-threaded programs by default, and # Some systems optimize for single-threaded programs by default, and
# need special flags to disable these optimizations. For example, the # need special flags to disable these optimizations. For example, the
# definition of 'errno' in <errno.h>. # definition of 'errno' in <errno.h>.
if test "$opsys" = aix4-2; then case $opsys in
AC_DEFINE([_THREAD_SAFE], [1], sol*)
[Define to 1 if your system requires this in multithreaded code.]) AC_DEFINE([_REENTRANT], 1,
fi [Define to 1 if your system requires this in multithreaded code.]);;
aix4-2)
AC_DEFINE([_THREAD_SAFE], 1,
[Define to 1 if your system requires this in multithreaded code.]);;
esac
fi fi
AC_SUBST([LIB_PTHREAD]) AC_SUBST([LIB_PTHREAD])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment