mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
vbackup: fix compilation on NetBSD (thanks Álvaro Jurado)
On NetBSD 5.0 and upper, mount() require data_len as a fifth argument. LGTM=rsc R=rsc CC=elbingmiss https://codereview.appspot.com/111600043
This commit is contained in:
parent
a9e0d2b6c4
commit
738e890b19
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue