pkgsrc/sysutils/open-vm-tools/patches/patch-ai
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

31 lines
1.1 KiB
Text

$NetBSD: patch-ai,v 1.2 2008/08/31 06:36:47 scottr Exp $
--- lib/file/fileIOPosix.c.orig 2008-08-08 02:01:53.000000000 -0500
+++ lib/file/fileIOPosix.c
@@ -62,7 +62,7 @@
#include <dlfcn.h>
#include <sys/xattr.h>
#else
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/param.h>
#include <sys/mount.h>
#else
@@ -720,7 +720,7 @@ FileIO_Create(FileIODescriptor *file,
ASSERT(file->lockToken == NULL);
ASSERT_ON_COMPILE(FILEIO_ERROR_LAST < 16); /* See comment in fileIO.h */
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(N_PLAT_NLM)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(N_PLAT_NLM) && !defined(__NetBSD__)
/*
* If FILEIO_OPEN_EXCLUSIVE_LOCK or FILEIO_OPEN_MULTIWRITER_LOCK or
* (FILEIO_OPEN_ACCESS_READ | FILEIO_OPEN_LOCKED) are passed, and we are
@@ -1248,7 +1248,7 @@ FileIO_Sync(const FileIODescriptor *file
/*
* readv & writev are not available in the FreeBSD or Solaris Tools builds
*/
-#if !defined(VMX86_TOOLS) || (!defined(__FreeBSD__) && !defined(sun))
+#if !defined(VMX86_TOOLS) || (!defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__))
/*