aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vbackup
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-08-11 03:25:17 +0000
committerrsc <devnull@localhost>2005-08-11 03:25:17 +0000
commitd079d563fc79136d6c17623088326fc6b6070be7 (patch)
tree1232c9b57abd047ffa941d19ed28cb46fd6ca034 /src/cmd/vbackup
parentfea3228fece71cef7e9930065cc6c8490613f935 (diff)
downloadplan9port-d079d563fc79136d6c17623088326fc6b6070be7.tar.gz
plan9port-d079d563fc79136d6c17623088326fc6b6070be7.tar.bz2
plan9port-d079d563fc79136d6c17623088326fc6b6070be7.zip
Accomodate NetBSD
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r--src/cmd/vbackup/mount-BSD.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cmd/vbackup/mount-BSD.c b/src/cmd/vbackup/mount-BSD.c
index 9eeeae56..1734186d 100644
--- a/src/cmd/vbackup/mount-BSD.c
+++ b/src/cmd/vbackup/mount-BSD.c
@@ -16,6 +16,9 @@
#else
# include <nfs/nfs.h>
#endif
+#ifdef __NetBSD__
+# include <nfs/nfsmount.h>
+#endif
#include <libc.h>
#include "mountnfs.h"
#ifndef MNT_NOATIME
@@ -45,11 +48,12 @@ mountnfs(int proto, struct sockaddr_in *sa,
na.retrans = NFS_RETRANS;
na.maxgrouplist = NFS_MAXGRPS;
na.hostname = "backup";
+#ifndef __NetBSD__
na.acregmin = 60;
na.acregmax = 600;
na.acdirmin = 60;
na.acdirmax = 600;
-
+#endif
mflag = MNT_RDONLY|MNT_NOSUID|MNT_NOATIME|MNT_NODEV;
if(mount("nfs", mtpt, mflag, &na) < 0)
sysfatal("mount: %r");