aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2010-02-16 22:59:48 +0000
committerErlang/OTP <[email protected]>2010-02-17 10:38:59 +0100
commit4a33e37e8c1b4f60a6890dccae438cd8fbbb05ef (patch)
tree0da7ba3cb1a9aff80b51b14519d4d88030206484
parent4c3aebea835bb02c3634221b3d9943ec48bb362f (diff)
downloadotp-4a33e37e8c1b4f60a6890dccae438cd8fbbb05ef.tar.gz
otp-4a33e37e8c1b4f60a6890dccae438cd8fbbb05ef.tar.bz2
otp-4a33e37e8c1b4f60a6890dccae438cd8fbbb05ef.zip
Fix force pthread rwlock
-rw-r--r--erts/aclocal.m45
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/aclocal.m4 b/erts/aclocal.m4
index 8052b2d67d..3d935b7295 100644
--- a/erts/aclocal.m4
+++ b/erts/aclocal.m4
@@ -826,8 +826,11 @@ case "$THR_LIB_NAME" in
AC_CHECK_FUNC(pthread_spin_lock, \
AC_DEFINE(ETHR_HAVE_PTHREAD_SPIN_LOCK, 1, \
[Define if you have the pthread_spin_lock function.]))
+ test "$force_linux_pthread_rwlocks" = "yes" || {
+ force_linux_pthread_rwlocks=no
+ }
case "$force_linux_pthread_rwlocks-$host_os" in
- yes-linux*) # Writers may get starved
+ no-linux*) # Writers may get starved
# TODO: write a test that tests the implementation
;;
*)