diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/vbackup/mount-BSD.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/vbackup/mount-BSD.c b/src/cmd/vbackup/mount-BSD.c index 2d320b63..63841b5c 100644 --- a/src/cmd/vbackup/mount-BSD.c +++ b/src/cmd/vbackup/mount-BSD.c @@ -63,6 +63,10 @@ mountnfs(int proto, struct sockaddr_in *sa, na.acdirmax = 600; #endif mflag = MNT_RDONLY|MNT_NOSUID|MNT_NOATIME|MNT_NODEV; +#ifdef __NetBSD__ + if(mount("nfs", mtpt, mflag, &na, sizeof(na)) < 0) +#else if(mount("nfs", mtpt, mflag, &na) < 0) +#endif sysfatal("mount: %r"); } |