diff options
-rw-r--r-- | drivers/unix/rw_lock_posix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |