From d079d563fc79136d6c17623088326fc6b6070be7 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 11 Aug 2005 03:25:17 +0000 Subject: Accomodate NetBSD --- src/cmd/vbackup/mount-BSD.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/cmd/vbackup') 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 #endif +#ifdef __NetBSD__ +# include +#endif #include #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"); -- cgit v1.2.3