aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/vbackup
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-09-12 23:26:48 -0400
committerRuss Cox <rsc@swtch.com>2009-09-12 23:26:48 -0400
commitefd88f54e8335f916e780669814ba34e5884b7a0 (patch)
tree87c276fb1b400c8fd924f343ad71eac8a48870c8 /src/cmd/vbackup
parent5d0dfbb05a25a953250dde523f1f68fcc1469750 (diff)
downloadplan9port-efd88f54e8335f916e780669814ba34e5884b7a0.tar.gz
plan9port-efd88f54e8335f916e780669814ba34e5884b7a0.tar.bz2
plan9port-efd88f54e8335f916e780669814ba34e5884b7a0.zip
vbackup: fix build on FreeBSD 8
fixes #30 http://code.swtch.com/plan9port/issues/30/ http://codereview.appspot.com/117060
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r--src/cmd/vbackup/mount-BSD.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/vbackup/mount-BSD.c b/src/cmd/vbackup/mount-BSD.c
index e7bd8156..2d320b63 100644
--- a/src/cmd/vbackup/mount-BSD.c
+++ b/src/cmd/vbackup/mount-BSD.c
@@ -9,8 +9,13 @@
#include <rpc/rpc.h>
#include <rpc/pmap_clnt.h>
#include <rpc/pmap_prot.h>
+#if defined(__FreeBSD_version) && __FreeBSD_version >= 800000
+#include <fs/nfs/rpcv2.h>
+#include <fs/nfs/nfsproto.h>
+# else
#include <nfs/rpcv2.h>
#include <nfs/nfsproto.h>
+#endif
#if defined(__FreeBSD_version) && __FreeBSD_version >= 500000
# include <nfsclient/nfs.h>
# ifndef MNT_NODEV