2013-09-26 17:14:40 +02:00

32 lines
1.1 KiB
Plaintext

$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__))
/*