3 --- lib/include/vmblock.h.orig 2008-08-08 02:01:52.000000000 -0500
4 +++ lib/include/vmblock.h
9 -#if defined(sun) || defined(__FreeBSD__)
10 +#if defined(sun) || defined(__FreeBSD__) || defined(__NetBSD__)
11 # include <sys/ioccom.h>
14 -#if defined(__FreeBSD__)
15 +#if defined(__FreeBSD__) || defined(__NetBSD__)
16 # include <sys/param.h>
17 +# include <sys/ioctl.h>
20 #define VMBLOCK_FS_NAME "vmblock"
22 # define VMBLOCK_DEVICE_MODE O_WRONLY
23 # define VMBLOCK_CONTROL(fd, op, path) write(fd, path, op)
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
32 # define VMBLOCK_CONTROL(fd, op, path) ioctl(fd, op, path)
34 -# elif defined(__FreeBSD__) /* } else if (FreeBSD) { */
35 +# elif defined(__FreeBSD__) || defined(__NetBSD__) /* } else if (FreeBSD) { */
37 * Similar to Solaris, construct ioctl(2) commands for block operations.
38 * Since the FreeBSD implementation does not change the user's passed-in