aboutsummaryrefslogtreecommitdiffstats
path: root/conf/trap/trap_netbsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'conf/trap/trap_netbsd.h')
-rw-r--r--conf/trap/trap_netbsd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf/trap/trap_netbsd.h b/conf/trap/trap_netbsd.h
new file mode 100644
index 000000000000..8dd2846d446f
--- /dev/null
+++ b/conf/trap/trap_netbsd.h
@@ -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