Fixup fromcvs/togit conversion
[pkgsrcv2.git] / sysutils / open-vm-tools / patches / patch-az
1 $NetBSD$
2
3 --- lib/include/vmblock.h.orig  2008-08-08 02:01:52.000000000 -0500
4 +++ lib/include/vmblock.h
5 @@ -25,12 +25,13 @@
6  #ifndef _VMBLOCK_H_
7  #define _VMBLOCK_H_
8  
9 -#if defined(sun) || defined(__FreeBSD__)
10 +#if defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
11  # include <sys/ioccom.h>
12  #endif
13  
14 -#if defined(__FreeBSD__)
15 +#if defined(__FreeBSD__) || defined(__NetBSD__)
16  # include <sys/param.h>
17 +# include <sys/ioctl.h>
18  #endif
19  
20  #define VMBLOCK_FS_NAME                "vmblock"
21 @@ -54,7 +55,7 @@
22  # define VMBLOCK_DEVICE_MODE            O_WRONLY
23  # define VMBLOCK_CONTROL(fd, op, path)  write(fd, path, op)
24  
25 -#elif defined(sun) || defined(__FreeBSD__)
26 +#elif defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
27  # define VMBLOCK_MOUNT_POINT            "/var/run/" VMBLOCK_FS_NAME
28  # define VMBLOCK_DEVICE                 VMBLOCK_MOUNT_POINT
29  # define VMBLOCK_DEVICE_MODE            O_RDONLY
30 @@ -71,7 +72,7 @@
31  #  endif
32  #  define VMBLOCK_CONTROL(fd, op, path)  ioctl(fd, op, path)
33  
34 -# elif defined(__FreeBSD__)              /* } else if (FreeBSD) { */
35 +# elif defined(__FreeBSD__) || defined(__NetBSD__)              /* } else if (FreeBSD) { */
36     /*
37      * Similar to Solaris, construct ioctl(2) commands for block operations.
38      * Since the FreeBSD implementation does not change the user's passed-in