diff options
author | rsc <devnull@localhost> | 2005-07-13 22:51:29 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-13 22:51:29 +0000 |
commit | f691849bf65e1bc8481c7d128cc2a519766ee45b (patch) | |
tree | 694176d719f613998b304306a95757ca0bfb57c0 /src/cmd/vbackup | |
parent | c44f783b4bd6455f03afd6fbcecd139641986f6b (diff) | |
download | plan9port-f691849bf65e1bc8481c7d128cc2a519766ee45b.tar.gz plan9port-f691849bf65e1bc8481c7d128cc2a519766ee45b.tar.bz2 plan9port-f691849bf65e1bc8481c7d128cc2a519766ee45b.zip |
freebsd 5
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; |