summaryrefslogtreecommitdiff
path: root/security/sfs/patches
diff options
context:
space:
mode:
authorapb <apb@pkgsrc.org>2008-02-16 22:03:49 +0000
committerapb <apb@pkgsrc.org>2008-02-16 22:03:49 +0000
commit4a80804eee73382a2d83e53b1a2dd01c9360e20b (patch)
treeeb188eb575be48f756a19d72a2c9813a0461c083 /security/sfs/patches
parentab373e2b7e3758c87675ba4a2c55d72255079ded (diff)
downloadpkgsrc-4a80804eee73382a2d83e53b1a2dd01c9360e20b.tar.gz
Deal with fourth arg to mount(2) in NetBSD. It appeared between
4.99.23 and 4.99.24.
Diffstat (limited to 'security/sfs/patches')
-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))