pkgsrc/sysutils/open-vm-tools/patches/patch-bd
scottr 8e053ee7cb Update to version 2008.08.08-109361. This release provides the following
enhancements:

 - Simple command-line tools to interface with VMware host
 - Guest OS scripts that can be triggered by the VMware host
 - Startup script

When compiled with X11 support (the default), this release also provides:

 - GTK+-based GUI to configure time sync, device connections, and scripts
 - Helper application to interface with the xf86-video-vmware driver,
   enabling dynamic screen resize
2008-08-31 06:36:47 +00:00

22 lines
704 B
Text

$NetBSD: patch-bd,v 1.1 2008/08/31 06:36:48 scottr Exp $
--- lib/misc/util_misc.c.orig 2008-08-08 02:01:54.000000000 -0500
+++ lib/misc/util_misc.c
@@ -47,7 +47,7 @@
# include <pwd.h>
#endif
-#if defined(__APPLE__) || defined(__FreeBSD__)
+#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
#include <pthread.h>
#endif
@@ -481,7 +481,7 @@ Util_GetCurrentThreadId(void)
tid = getpid();
ASSERT(tid != (pid_t)-1);
return tid;
-#elif defined(__APPLE__) || defined(__FreeBSD__)
+#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__)
ASSERT_ON_COMPILE(sizeof(Util_ThreadID) == sizeof(pthread_t));
return pthread_self();
#elif defined(_WIN32)