diff options
Diffstat (limited to 'lib/util/smb_threads.h')
-rw-r--r-- | lib/util/smb_threads.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/util/smb_threads.h b/lib/util/smb_threads.h index f4ed1fcb9a..682e142c5b 100644 --- a/lib/util/smb_threads.h +++ b/lib/util/smb_threads.h @@ -33,8 +33,11 @@ #if defined(HAVE_PTHREAD_H) #define SMB_THREAD_ONCE_INIT PTHREAD_ONCE_INIT +#define SMB_THREAD_ONCE_IS_INITIALIZED(val) (true) +#define SMB_THREAD_ONCE_INITIALIZE(val) #else -#define SMB_THREAD_ONCE_INIT false +#define SMB_THREAD_ONCE_IS_INITIALIZED(val) ((val) == true) +#define SMB_THREAD_ONCE_INITIALIZE(val) ((val) = true) #endif enum smb_thread_lock_type { |