From 97adc861835d3d63fcfabaf559955e91c3bdd543 Mon Sep 17 00:00:00 2001 From: pfg Date: Sun, 2 Sep 2012 21:04:40 +0000 Subject: 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 --- include/rpc/rpcb_clnt.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/rpc/rpcb_clnt.h') diff --git a/include/rpc/rpcb_clnt.h b/include/rpc/rpcb_clnt.h index fa64a85..0cfa21f 100644 --- a/include/rpc/rpcb_clnt.h +++ b/include/rpc/rpcb_clnt.h @@ -61,6 +61,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + __BEGIN_DECLS extern bool_t rpcb_set(const rpcprog_t, const rpcvers_t, const struct netconfig *, const struct netbuf *); @@ -82,4 +86,8 @@ extern char *rpcb_taddr2uaddr(struct netconfig *, struct netbuf *); extern struct netbuf *rpcb_uaddr2taddr(struct netconfig *, char *); __END_DECLS +#ifdef __cplusplus +} +#endif + #endif /* !_RPC_RPCB_CLNT_H */ -- cgit v1.1