From 5c90cbad38be6800a21af0edb5ea71df344e8a74 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Tue, 11 Sep 2012 16:10:20 +0000 Subject: [PATCH] Dimitry Andric: FreeBSD porting tweaks for PTHREAD_MUTEX_INITIALIZER and PTHREAD_COND_INITIALIZER git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@163626 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/__mutex_base | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/__mutex_base b/include/__mutex_base index 1782e7c0..538e89be 100644 --- a/include/__mutex_base +++ b/include/__mutex_base @@ -39,7 +39,7 @@ class _LIBCPP_VISIBLE mutex public: _LIBCPP_INLINE_VISIBILITY #ifndef _LIBCPP_HAS_NO_CONSTEXPR - constexpr mutex() _NOEXCEPT : __m_ PTHREAD_MUTEX_INITIALIZER {} + constexpr mutex() _NOEXCEPT : __m_(PTHREAD_MUTEX_INITIALIZER) {} #else mutex() _NOEXCEPT {__m_ = (pthread_mutex_t)PTHREAD_MUTEX_INITIALIZER;} #endif @@ -305,7 +305,7 @@ class _LIBCPP_VISIBLE condition_variable public: _LIBCPP_INLINE_VISIBILITY #ifndef _LIBCPP_HAS_NO_CONSTEXPR - constexpr condition_variable() : __cv_ PTHREAD_COND_INITIALIZER {} + constexpr condition_variable() : __cv_(PTHREAD_COND_INITIALIZER) {} #else condition_variable() {__cv_ = (pthread_cond_t)PTHREAD_COND_INITIALIZER;} #endif