diff options
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r-- | src/cmd/vbackup/mount-FreeBSD.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cmd/vbackup/mount-FreeBSD.c b/src/cmd/vbackup/mount-FreeBSD.c index ac5cab2a..7803f8bd 100644 --- a/src/cmd/vbackup/mount-FreeBSD.c +++ b/src/cmd/vbackup/mount-FreeBSD.c @@ -11,7 +11,11 @@ #include <rpc/pmap_prot.h> #include <nfs/rpcv2.h> #include <nfs/nfsproto.h> -#include <nfs/nfs.h> +#if __FreeBSD_version >= 500000 +# include <nfsclient/nfs.h> +#else +# include <nfs/nfs.h> +#endif #include <libc.h> #include "mountnfs.h" @@ -38,7 +42,6 @@ mountnfs(int proto, struct sockaddr_in *sa, na.retrans = NFS_RETRANS; na.maxgrouplist = NFS_MAXGRPS; na.readahead = 0; - na.leaseterm = 0; na.deadthresh = 0; na.hostname = "backup"; na.acregmin = 60; |