From 075ec356dfcd7b0315d43e565b1c8675504627ad Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Thu, 9 Jul 2009 20:22:05 +0000 Subject: The mutex_owned() macro should operate on kmutex_t and not on mutex_t. This fixes 'zdb ' crash. Reported by: avg Approved by: re (kib) --- cddl/contrib/opensolaris/head/thread.h | 1 - 1 file changed, 1 deletion(-) (limited to 'cddl/contrib/opensolaris/head/thread.h') diff --git a/cddl/contrib/opensolaris/head/thread.h b/cddl/contrib/opensolaris/head/thread.h index b374b8a26277..818f0781117a 100644 --- a/cddl/contrib/opensolaris/head/thread.h +++ b/cddl/contrib/opensolaris/head/thread.h @@ -53,7 +53,6 @@ typedef pthread_rwlock_t rwlock_t; #define mutex_lock(l) pthread_mutex_lock(l) #define mutex_trylock(l) pthread_mutex_trylock(l) #define mutex_unlock(l) pthread_mutex_unlock(l) -#define mutex_owned(l) pthread_mutex_isowned_np(l) #define rwlock_init(l,f,a) pthread_rwlock_init(l,NULL) #define rwlock_destroy(l) pthread_rwlock_destroy(l) #define rw_rdlock(l) pthread_rwlock_rdlock(l) -- cgit v1.2.3