From bfb10f41a8e3fe7326f507451459529c5b39b72e Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Mon, 17 May 2010 07:07:57 +0000 Subject: OS X: NFS adjustments needed for OS X Signed-off-by: Csaba Henk Signed-off-by: Anand V. Avati BUG: 361 (GlusterFS 3.0 should work on Mac OS/X) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=361 --- xlators/nfs/lib/src/xdr-rpc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xlators/nfs/lib/src/xdr-rpc.c') diff --git a/xlators/nfs/lib/src/xdr-rpc.c b/xlators/nfs/lib/src/xdr-rpc.c index 5f8521ff3..071462242 100644 --- a/xlators/nfs/lib/src/xdr-rpc.c +++ b/xlators/nfs/lib/src/xdr-rpc.c @@ -22,6 +22,7 @@ #include "config.h" #endif +#include #include #include #include @@ -178,7 +179,11 @@ xdr_to_auth_unix_cred (char *msgbuf, int msglen, struct authunix_parms *au, return -1; au->aup_machname = machname; +#ifdef GF_DARWIN_HOST_OS + au->aup_gids = (int *)gids; +#else au->aup_gids = gids; +#endif xdrmem_create (&xdr, msgbuf, msglen, XDR_DECODE); -- cgit