summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2012-07-06 16:53:35 +0200
committerAnand Avati <avati@redhat.com>2012-07-13 14:08:22 -0700
commit74d7d2d53c539c822cf7b6da44a515f1e326c5bc (patch)
tree0829ae1fd01e0639bb00110ac6075f3774f34c36 /rpc
parente14095fbbe5c410863ffca865803762dd8cf6e87 (diff)
NetBSD build fixes
This is a backport of Change-Id: Icd7290f1e340675d763665a0d0c5f95bc14e0c55 BUG: 764655 Change-Id: Iaca3dc30e61c0864af673b90d2a7fdea6a3143cc Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org> Reviewed-on: http://review.gluster.com/3577 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'rpc')
-rw-r--r--rpc/xdr/src/nlm4-xdr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpc/xdr/src/nlm4-xdr.h b/rpc/xdr/src/nlm4-xdr.h
index e2e1619..3799f6b 100644
--- a/rpc/xdr/src/nlm4-xdr.h
+++ b/rpc/xdr/src/nlm4-xdr.h
@@ -27,6 +27,12 @@
#include <rpc/rpc.h>
+#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
#ifdef __cplusplus
extern "C" {