Added -D_POSIX_PTHREAD_SEMANTICS for solaris.

This commit is contained in:
crs 2002-11-05 19:43:37 +00:00
parent 52d8edb747
commit 48fc3c77c8
1 changed files with 3 additions and 2 deletions

View File

@ -359,8 +359,9 @@ if test "x$acx_pthread_ok" = xyes; then
AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no
case "${host_cpu}-${host_os}" in
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
*solaris* | alpha*-osf*) flag="-D_REENTRANT";;
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
alpha*-osf*) flag="-D_REENTRANT";;
*solaris*) flag="-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS";;
esac
AC_MSG_RESULT(${flag})
if test "x$flag" != xno; then