aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/head/thread.h
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2009-07-09 20:22:05 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2009-07-09 20:22:05 +0000
commit075ec356dfcd7b0315d43e565b1c8675504627ad (patch)
tree54dec725b287445b7ac09e0a90da06c4f4d0d081 /cddl/contrib/opensolaris/head/thread.h
parentadb1423aa632f21deb21c3c45fab2e745bb2b695 (diff)
downloadsrc-075ec356dfcd7b0315d43e565b1c8675504627ad.tar.gz
src-075ec356dfcd7b0315d43e565b1c8675504627ad.zip
The mutex_owned() macro should operate on kmutex_t and not on mutex_t.
This fixes 'zdb <poolname>' crash. Reported by: avg Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=195515
Diffstat (limited to 'cddl/contrib/opensolaris/head/thread.h')
-rw-r--r--cddl/contrib/opensolaris/head/thread.h1
1 files changed, 0 insertions, 1 deletions
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)