tAccomodate NetBSD - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d079d563fc79136d6c17623088326fc6b6070be7
(DIR) parent fea3228fece71cef7e9930065cc6c8490613f935
(HTM) Author: rsc <devnull@localhost>
Date: Thu, 11 Aug 2005 03:25:17 +0000
Accomodate NetBSD
Diffstat:
M src/cmd/vbackup/mount-BSD.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/src/cmd/vbackup/mount-BSD.c b/src/cmd/vbackup/mount-BSD.c
t@@ -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
t@@ -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");