summaryrefslogtreecommitdiffstats
path: root/include/rpc/rpc_msg.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2012-09-02 21:04:40 +0000
committerpfg <pfg@FreeBSD.org>2012-09-02 21:04:40 +0000
commit97adc861835d3d63fcfabaf559955e91c3bdd543 (patch)
tree15afb466c1616ef4f4e63a7ec1b8cc2128b9438c /include/rpc/rpc_msg.h
parent70630d664ef4716dd247b13bdb90a3e2c77aef78 (diff)
downloadFreeBSD-src-97adc861835d3d63fcfabaf559955e91c3bdd543.zip
FreeBSD-src-97adc861835d3d63fcfabaf559955e91c3bdd543.tar.gz
Fix RPC headers for C++
C++ mangling will cause trouble with variables like __rpc_xdr in xdr.h so rename this to XDR. While here add proper C++ guards to RPC headers. PR: 137443 MFC after: 2 weeks
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