summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/lib/src/xdr-nfs3.c
diff options
context:
space:
mode:
authorCsaba Henk <csaba@gluster.com>2010-05-17 07:07:57 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-05-21 00:31:47 -0700
commitbfb10f41a8e3fe7326f507451459529c5b39b72e (patch)
tree08f63cba247e4d652242d3906108ef5ccc860f50 /xlators/nfs/lib/src/xdr-nfs3.c
parent18d982e6d0d330af8ccd2b12252ae29fe0932023 (diff)
OS X: NFS adjustments needed for OS X
Signed-off-by: Csaba Henk <csaba@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361
Diffstat (limited to 'xlators/nfs/lib/src/xdr-nfs3.c')
-rw-r--r--xlators/nfs/lib/src/xdr-nfs3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlators/nfs/lib/src/xdr-nfs3.c b/xlators/nfs/lib/src/xdr-nfs3.c
index d7984be56a4..0360203961c 100644
--- a/xlators/nfs/lib/src/xdr-nfs3.c
+++ b/xlators/nfs/lib/src/xdr-nfs3.c
@@ -20,6 +20,12 @@
#include "xdr-nfs3.h"
#include "mem-pool.h"
+#if GF_DARWIN_HOST_OS
+#define xdr_u_quad_t xdr_u_int64_t
+#define xdr_quad_t xdr_int64_t
+#define xdr_uint32_t xdr_u_int32_t
+#endif
+
bool_t
xdr_uint64 (XDR *xdrs, uint64 *objp)
{