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
@ -63,6 +63,10 @@ mountnfs(int proto, struct sockaddr_in *sa,
|
|||||||
na.acdirmax = 600;
|
na.acdirmax = 600;
|
||||||
#endif
|
#endif
|
||||||
mflag = MNT_RDONLY|MNT_NOSUID|MNT_NOATIME|MNT_NODEV;
|
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)
|
if(mount("nfs", mtpt, mflag, &na) < 0)
|
||||||
|
#endif
|
||||||
sysfatal("mount: %r");
|
sysfatal("mount: %r");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user