From 1b9c36cc46d51f70af44b3a5e15adda1896c2cdf Mon Sep 17 00:00:00 2001 From: ume Date: Sat, 9 Apr 2005 14:20:18 +0000 Subject: unbreak build without YP defined. Submitted by: Andrea Campi --- lib/libc/net/name6.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index f00ce26..a738b95 100644 --- a/lib/libc/net/name6.c +++ b/lib/libc/net/name6.c @@ -91,7 +91,9 @@ __FBSDID("$FreeBSD$"); #include "namespace.h" +#if defined(YP) || defined(ICMPNL) #include "reentrant.h" +#endif #include #include #include @@ -235,9 +237,11 @@ static int _icmp_ghbyaddr(void *, void *, va_list); * XXX: Many dependencies are not thread-safe. Still, we cannot use * getipnodeby*() in conjunction with other functions which call them. */ +#if defined(YP) || defined(ICMPNL) static mutex_t _getipnodeby_thread_lock = MUTEX_INITIALIZER; #define THREAD_LOCK() mutex_lock(&_getipnodeby_thread_lock); #define THREAD_UNLOCK() mutex_unlock(&_getipnodeby_thread_lock); +#endif /* Host lookup order if nsswitch.conf is broken or nonexistant */ static const ns_src default_src[] = { -- cgit v1.1