From 53f3aea0943e36e5fed2615ad5f9fd1f17de51d2 Mon Sep 17 00:00:00 2001 From: "Roger A. Faulkner" Date: Mon, 11 Jan 2010 17:42:13 -0800 Subject: 6915578 MUTEX_HELD() and RW_LOCK_HELD() macros should be available to Posix threads --- usr/src/lib/libscf/common/lowlevel.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'usr/src/lib/libscf') 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 #include #include +#include #include #include #include @@ -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 -- cgit v1.2.3