diff options
Diffstat (limited to 'xlators/nfs/lib/src/xdr-rpc.c')
-rw-r--r-- | xlators/nfs/lib/src/xdr-rpc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/nfs/lib/src/xdr-rpc.c b/xlators/nfs/lib/src/xdr-rpc.c index 5f8521ff382..071462242b1 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 <string.h> #include <rpc/rpc.h> #include <rpc/pmap_clnt.h> #include <arpa/inet.h> @@ -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); |