summaryrefslogtreecommitdiff
path: root/usr/src/lib/libscf/common/lowlevel.c
diff options
context:
space:
mode:
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