From 90d78d8c72837fa408a654d53fae3d5f2f80770a Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 17 Sep 2008 20:06:28 +0000 Subject: [PATCH] NetBSD's new mount system call needs the size of the opaque filesystem 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 | 1 + conf/trap/trap_netbsd.h | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 conf/trap/trap_netbsd.h diff --git a/Makefile.am b/Makefile.am index 09c0639..7a074b4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 0000000..8dd2846 --- /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 -- 2.43.0