$NetBSD: patch-bw,v 1.2 2012/12/25 21:02:15 joerg Exp $ --- vmware-user/foreignVMToolsDaemon.h.orig 2008-08-08 07:01:56.000000000 +0000 +++ vmware-user/foreignVMToolsDaemon.h @@ -59,7 +59,7 @@ VixError VIX_INIT_LOCK(VixLockType *lock #ifdef __APPLE__ #define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE -#elif defined(__FreeBSD__) || defined(sun) +#elif defined(__FreeBSD__) || defined(sun) || defined(__NetBSD__) #include #define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE #else @@ -72,7 +72,7 @@ VixError VIX_INIT_LOCK(VixLockType *lock typedef pthread_mutex_t VixLockType; static INLINE VixError VIX_INIT_LOCK(VixLockType *lockPtr); -VixError VIX_INIT_LOCK(VixLockType *lockPtr) +static INLINE VixError VIX_INIT_LOCK(VixLockType *lockPtr) { int result; pthread_mutexattr_t attr;