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:
David du Colombier 2014-08-06 14:43:21 +02:00
parent a9e0d2b6c4
commit 738e890b19

View file

@ -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");
}