$NetBSD: patch-ab,v 1.2 2004/11/06 03:35:19 tvierling Exp $ --- src/util/semaphore.c.orig 2004-09-12 14:33:00.000000000 -0400 +++ src/util/semaphore.c @@ -35,7 +35,9 @@ #if FREEBSD #include #endif -#if SOMEBSD +#if NETBSD +# include +#elif SOMEBSD # include #endif #if SOMEBSD || OSX @@ -133,10 +135,10 @@ void create_recursive_mutex_(Mutex * mut #if LINUX pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE_NP); -#elif SOMEBSD +#elif SOMEBSD && !NETBSD pthread_mutexattr_setkind_np(&attr, PTHREAD_MUTEX_RECURSIVE); -#elif SOLARIS +#elif SOLARIS || NETBSD pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); #elif OSX