summaryrefslogtreecommitdiffstats
path: root/rpc/xdr/src
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2012-04-27 11:41:14 +0200
committerVijay Bellur <vijay@gluster.com>2012-05-11 00:41:24 -0700
commit8c4bf91025e2bf510a56f5789594beceb3c3827c (patch)
tree153dc2c2dcf15d80401c8193b3fda919512cb06a /rpc/xdr/src
parent511f99b88d0e1b2962b3b5bbddf722ad07d15575 (diff)
NetBSD build fixes
Change-Id: Ib8183d4b585465d05a7adf3a4ceae93ae1bded15 BUG: 764655 Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.com/3238 Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'rpc/xdr/src')
-rw-r--r--rpc/xdr/src/nlm4-xdr.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/rpc/xdr/src/nlm4-xdr.h b/rpc/xdr/src/nlm4-xdr.h
index fcc0e51b3..683d54ef5 100644
--- a/rpc/xdr/src/nlm4-xdr.h
+++ b/rpc/xdr/src/nlm4-xdr.h
@@ -36,6 +36,13 @@ extern "C" {
#define LM_MAXSTRLEN 1024
#define MAXNAMELEN 1025
+#if defined(__NetBSD__)
+#define xdr_u_quad_t xdr_u_int64_t
+#define xdr_quad_t xdr_int64_t
+#define xdr_uint32_t xdr_u_int32_t
+#define xdr_uint64_t xdr_u_int64_t
+#endif
+
/*
* The following enums are actually bit encoded for efficient
* boolean algebra.... DON'T change them.....