NetBSD's new mount system call needs the size of the opaque filesystem
authorChristos Zoulas <christos@zoulas.com>
Wed, 17 Sep 2008 20:06:28 +0000 (20:06 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 17 Sep 2008 20:06:28 +0000 (20:06 +0000)
specific structure, but passing 0 for now works. We would need to change
a lot more code to pass the size from the fs-specific calls, so for now
punt.

Makefile.am
conf/trap/trap_netbsd.h [new file with mode: 0644]

index 09c06390888aed5570523f77ea010da377d71642..7a074b49f4b87180c8e724c842faacef5057c6ac 100644 (file)
@@ -262,6 +262,7 @@ EXTRA_DIST_CONF =                   \
        conf/trap/trap_isc3.h           \
        conf/trap/trap_linux.h          \
        conf/trap/trap_mach3.h          \
+       conf/trap/trap_netbsd.h         \
        conf/trap/trap_news4.h          \
        conf/trap/trap_rtu6.h           \
        conf/trap/trap_stellix.h        \
diff --git a/conf/trap/trap_netbsd.h b/conf/trap/trap_netbsd.h
new file mode 100644 (file)
index 0000000..8dd2846
--- /dev/null
@@ -0,0 +1,6 @@
+/* $srcdir/conf/trap/trap_netbsd.h */
+#if __NetBSD_Version__ >= 499002300
+#define MOUNT_TRAP(type, mnt, flags, mnt_data) mount(type, mnt->mnt_dir, flags, mnt_data, 0)
+#else
+#define MOUNT_TRAP(type, mnt, flags, mnt_data) mount(type, mnt->mnt_dir, flags, mnt_data)
+#endif