mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-04 02:08:49 -04:00
23 lines
821 B
Plaintext
23 lines
821 B
Plaintext
$NetBSD: patch-ad,v 1.3 2012/12/25 21:02:15 joerg Exp $
|
|
|
|
--- guestd/foreignVMToolsDaemon.h.orig 2008-08-08 07:01:56.000000000 +0000
|
|
+++ guestd/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 <unistd.h>
|
|
#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;
|