summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/rpc/rpc-lib/src/xdr-rpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/rpc/rpc-lib/src/xdr-rpc.c')
-rw-r--r--xlators/protocol/rpc/rpc-lib/src/xdr-rpc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/protocol/rpc/rpc-lib/src/xdr-rpc.c b/xlators/protocol/rpc/rpc-lib/src/xdr-rpc.c
index 1bcd9bbaa4c..088bddbf5b7 100644
--- a/xlators/protocol/rpc/rpc-lib/src/xdr-rpc.c
+++ b/xlators/protocol/rpc/rpc-lib/src/xdr-rpc.c
@@ -178,7 +178,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);