summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorRainer Jung <rjung@apache.org>2017-04-27 21:47:11 +0000
committerRainer Jung <rjung@apache.org>2017-04-27 21:47:11 +0000
commit4e5179801befcfb116a0a34a3ac55800ea28d825 (patch)
treead584a5371a840f225dd47abe97c6e933bf3e165 /build
parent7705c702beaedc10de440035cb2ea8d128aebcba (diff)
downloadapr-4e5179801befcfb116a0a34a3ac55800ea28d825.tar.gz
pthread_mutex_timedlock is broken on Solaris 10.
It can block without timeout in case of EDEADLK. On Solaris 8 it does not exist, on Solaris 11 it is fixed. For Solaris 10 no patch is available. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1792961 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r--build/apr_hints.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4
index 549a2db22..c2e59e5f0 100644
--- a/build/apr_hints.m4
+++ b/build/apr_hints.m4
@@ -119,6 +119,7 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
;;
*-linux*)
APR_ADDTO(CPPFLAGS, [-DLINUX -D_REENTRANT -D_GNU_SOURCE])
+ APR_SETIFNULL(ac_cv_func_pthread_mutex_timedlock, [no])
;;
*-lynx-lynxos)
APR_ADDTO(CPPFLAGS, [-D__NO_INCLUDE_WARN__ -DLYNXOS])
@@ -237,6 +238,11 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
*-solaris2*)
PLATOSVERS=`echo $host | sed 's/^.*solaris2.//'`
APR_ADDTO(CPPFLAGS, [-DSOLARIS2=$PLATOSVERS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT])
+ if test $PLATOSVERS -eq 10; then
+ # pthread_mutex_timedlock is broken on Solaris 10.
+ # It can block without timeout in case of EDEADLK.
+ APR_SETIFNULL(ac_cv_func_pthread_mutex_timedlock, [no])
+ fi
if test $PLATOSVERS -ge 10; then
APR_SETIFNULL(apr_lock_method, [USE_PROC_PTHREAD_SERIALIZE])
else