From 22934bae7cfbb59c88ef73c0384d9e3d30562be4 Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Mon, 11 Apr 2016 23:46:47 -0500 Subject: [PATCH] Fix heim_threads.h rwlocks macros for pthreads --- include/heim_threads.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/heim_threads.h b/include/heim_threads.h index 405372918..8770e174d 100644 --- a/include/heim_threads.h +++ b/include/heim_threads.h @@ -92,8 +92,8 @@ #define HEIMDAL_MUTEX_unlock(m) pthread_mutex_unlock(m) #define HEIMDAL_MUTEX_destroy(m) pthread_mutex_destroy(m) -#define HEIMDAL_RWLOCK rwlock_t -#define HEIMDAL_RWLOCK_INITIALIZER RWLOCK_INITIALIZER +#define HEIMDAL_RWLOCK pthread_rwlock_t +#define HEIMDAL_RWLOCK_INITIALIZER PTHREAD_RWLOCK_INITIALIZER #define HEIMDAL_RWLOCK_init(l) pthread_rwlock_init(l, NULL) #define HEIMDAL_RWLOCK_rdlock(l) pthread_rwlock_rdlock(l) #define HEIMDAL_RWLOCK_wrlock(l) pthread_rwlock_wrlock(l) @@ -215,7 +215,7 @@ heim_rwlock_trywrlock(heim_rwlock_t *l) return EBUSY; } -static inline vint +static inline int heim_rwlock_unlock(heim_rwlock_t *l) { if (l->exclusive) {