summaryrefslogtreecommitdiffstats
path: root/include/rpc/rpc_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rpc/rpc_msg.h')
-rw-r--r--include/rpc/rpc_msg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rpc/rpc_msg.h b/include/rpc/rpc_msg.h
index 354b341..453d549 100644
--- a/include/rpc/rpc_msg.h
+++ b/include/rpc/rpc_msg.h
@@ -43,6 +43,10 @@
#ifndef _RPC_RPC_MSG_H
#define _RPC_RPC_MSG_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define RPC_MSG_VERSION ((u_int32_t) 2)
#define RPC_SERVICE_PORT ((u_short) 2048)
@@ -211,4 +215,8 @@ extern bool_t xdr_rejected_reply(XDR *, struct rejected_reply *);
extern void _seterr_reply(struct rpc_msg *, struct rpc_err *);
__END_DECLS
+#ifdef __cplusplus
+}
+#endif
+
#endif /* !_RPC_RPC_MSG_H */
OpenPOWER on IntegriCloud