From d9ca9d778db3e49e2f3376881b4ca11eb6d6d172 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 8 Jan 2017 11:35:07 -0300 Subject: Use more compatible initializarion of RWLockPosix --- drivers/unix/rw_lock_posix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/unix/rw_lock_posix.cpp b/drivers/unix/rw_lock_posix.cpp index 772a7b812a..b51e5fd420 100644 --- a/drivers/unix/rw_lock_posix.cpp +++ b/drivers/unix/rw_lock_posix.cpp @@ -63,7 +63,8 @@ void RWLockPosix::make_default() { RWLockPosix::RWLockPosix() { - rwlock=PTHREAD_RWLOCK_INITIALIZER; + //rwlock=PTHREAD_RWLOCK_INITIALIZER; fails on OSX + pthread_rwlock_init(&rwlock,NULL); } -- cgit v1.2.3