summaryrefslogtreecommitdiff
path: root/security/sfs/patches/patch-bv
diff options
context:
space:
mode:
Diffstat (limited to 'security/sfs/patches/patch-bv')
-rw-r--r--security/sfs/patches/patch-bv16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/sfs/patches/patch-bv b/security/sfs/patches/patch-bv
new file mode 100644
index 00000000000..8c4e3d56b9f
--- /dev/null
+++ b/security/sfs/patches/patch-bv
@@ -0,0 +1,16 @@
+$NetBSD: patch-bv,v 1.1 2008/02/16 22:03:49 apb Exp $
+
+--- nfsconf.h.orig 2002-09-19 06:15:18.000000000 +0200
++++ nfsconf.h
+@@ -262,6 +262,11 @@ struct nfs3_fh {
+ #define SYS_MOUNT(hostname, type, dir, mntflags, args) \
+ vfsmount (type, dir, mntflags, args)
+
++#elif defined(__NetBSD__) && __NetBSD_Prereq__(4,99,24)
++ /* The fifth arg appeared in NetBSD between 4.99.23 and 4.99.24 */
++#define SYS_MOUNT(hostname, type, dir, mntflags, args) \
++ mount (type, dir, mntflags, args, sizeof(*(args)))
++
+ #else /* normal mount syscall */
+ #define SYS_MOUNT(hostname, type, dir, mntflags, args) \
+ mount (type, dir, mntflags, (char *) (args))