summaryrefslogtreecommitdiff
path: root/sysutils/open-vm-tools/patches/patch-ag
blob: 59500494afdc2e4661303e3aa1dd0ef8fd9588af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
$NetBSD: patch-ag,v 1.1.1.1 2007/10/17 21:35:53 agc Exp $

--- lib/file/filePosix.c	2007/09/28 19:06:00	1.1
+++ lib/file/filePosix.c	2007/09/28 19:07:57
@@ -24,7 +24,7 @@
 
 #include <sys/types.h> /* Needed before sys/vfs.h with glibc 2.0 --hpreg */
 
-#if !__FreeBSD__
+#if !__FreeBSD__ && !__NetBSD__
 # if !__APPLE__
 #  include <sys/vfs.h>
 # endif
@@ -64,7 +64,7 @@
 #include "dynbuf.h"
 #include "localconfig.h"
 
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
 static char *FilePosixLookupFSDeviceName(const char *filename);
 
 # ifdef VMX86_SERVER
@@ -382,7 +382,7 @@
  *----------------------------------------------------------------------
  */
 
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
 Bool
 File_IsRemote(const char *fileName) // IN: File name
 {
@@ -412,7 +412,7 @@
 #endif
 #endif
 }
-#endif /* !FreeBSD && !sun */
+#endif /* !FreeBSD && !sun && !__NetBSD__ */
 
 
 /*
@@ -698,7 +698,7 @@
 }
 
 
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
 /*
  *----------------------------------------------------------------------
  *
@@ -1368,7 +1368,7 @@
 }
 
 
-#endif /* !FreeBSD && !sun */
+#endif /* !FreeBSD && !sun && !defined(__NetBSD__) */
 
 
 /*