summaryrefslogtreecommitdiff
path: root/usr/src/lib/libscf/common/lowlevel.c
diff options
context:
space:
mode:
authorRoger A. Faulkner <Roger.Faulkner@Sun.COM>2010-01-11 17:42:13 -0800
committerRoger A. Faulkner <Roger.Faulkner@Sun.COM>2010-01-11 17:42:13 -0800
commit53f3aea0943e36e5fed2615ad5f9fd1f17de51d2 (patch)
tree388c0dbc3a451ff7ecf86b8263f9206f730c06e8 /usr/src/lib/libscf/common/lowlevel.c
parent86a9c507121ec77a92601d8844a5ca82373cd4aa (diff)
downloadillumos-gate-53f3aea0943e36e5fed2615ad5f9fd1f17de51d2.tar.gz
6915578 MUTEX_HELD() and RW_LOCK_HELD() macros should be available to Posix threads
Diffstat (limited to 'usr/src/lib/libscf/common/lowlevel.c')
-rw-r--r--usr/src/lib/libscf/common/lowlevel.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/usr/src/lib/libscf/common/lowlevel.c b/usr/src/lib/libscf/common/lowlevel.c
index 1300a6be73..92028e610b 100644
--- a/usr/src/lib/libscf/common/lowlevel.c
+++ b/usr/src/lib/libscf/common/lowlevel.c
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -43,6 +43,7 @@
#include <libuutil.h>
#include <poll.h>
#include <pthread.h>
+#include <synch.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
@@ -93,13 +94,6 @@ static char index32[128] = {
#define DECODE32_GS (8) /* scf_decode32 group size */
-/*
- * We want MUTEX_HELD, but we also want pthreads.
- */
-struct _lwp_mutex;
-extern int _mutex_held(struct _lwp_mutex *);
-#define MUTEX_HELD(m) _mutex_held((struct _lwp_mutex *)(m))
-
#ifdef lint
#define assert_nolint(x) (void)0
#else