diff options
Diffstat (limited to 'rpc/xdr/src/nlm4-xdr.x')
| -rw-r--r-- | rpc/xdr/src/nlm4-xdr.x | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/rpc/xdr/src/nlm4-xdr.x b/rpc/xdr/src/nlm4-xdr.x index e2be3b7f0f7..847b0e64491 100644 --- a/rpc/xdr/src/nlm4-xdr.x +++ b/rpc/xdr/src/nlm4-xdr.x @@ -8,8 +8,15 @@ cases as published by the Free Software Foundation. */ +#ifdef RPC_XDR +%#include "rpc-pragmas.h" +#endif +%#include <glusterfs/compat.h> + /* .x file defined as according to the RFC */ +%#include "xdr-common.h" + const MAXNETOBJ_SZ = 1024; const LM_MAXSTRLEN = 1024; const MAXNAMELEN = 1025; @@ -83,7 +90,7 @@ struct nlm4_share { union nlm4_testrply switch (nlm4_stats stat) { case nlm4_denied: - struct nlm4_holder holder; + nlm4_holder holder; default: void; }; @@ -96,7 +103,7 @@ struct nlm4_testres { struct nlm4_testargs { nlm4_netobj cookie; bool exclusive; - struct nlm4_lock alock; + nlm4_lock alock; }; struct nlm4_res { @@ -108,7 +115,7 @@ struct nlm4_lockargs { nlm4_netobj cookie; bool block; bool exclusive; - struct nlm4_lock alock; + nlm4_lock alock; bool reclaim; /* used for recovering locks */ int32_t state; /* specify local status monitor state */ }; @@ -117,12 +124,12 @@ struct nlm4_cancargs { nlm4_netobj cookie; bool block; bool exclusive; - struct nlm4_lock alock; + nlm4_lock alock; }; struct nlm4_unlockargs { nlm4_netobj cookie; - struct nlm4_lock alock; + nlm4_lock alock; }; struct nlm4_shareargs { @@ -155,6 +162,6 @@ struct nlm_sm_status { program NLMCBK_PROGRAM { version NLMCBK_V1 { - void NLMCBK_SM_NOTIFY(struct nlm_sm_status) = 16; + void NLMCBK_SM_NOTIFY(nlm_sm_status) = 16; } = 1; } = 100021; |
