diff options
author | pfg <pfg@FreeBSD.org> | 2012-09-02 21:04:40 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2012-09-02 21:04:40 +0000 |
commit | 97adc861835d3d63fcfabaf559955e91c3bdd543 (patch) | |
tree | 15afb466c1616ef4f4e63a7ec1b8cc2128b9438c /include/rpc/pmap_clnt.h | |
parent | 70630d664ef4716dd247b13bdb90a3e2c77aef78 (diff) | |
download | FreeBSD-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/pmap_clnt.h')
-rw-r--r-- | include/rpc/pmap_clnt.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rpc/pmap_clnt.h b/include/rpc/pmap_clnt.h index 89f1614..e2e5f79 100644 --- a/include/rpc/pmap_clnt.h +++ b/include/rpc/pmap_clnt.h @@ -66,6 +66,10 @@ #define _RPC_PMAP_CLNT_H_ #include <sys/cdefs.h> +#ifdef __cplusplus +extern "C" { +#endif + __BEGIN_DECLS extern bool_t pmap_set(u_long, u_long, int, int); extern bool_t pmap_unset(u_long, u_long); @@ -83,4 +87,8 @@ extern u_short pmap_getport(struct sockaddr_in *, u_long, u_long, u_int); __END_DECLS +#ifdef __cplusplus +} +#endif + #endif /* !_RPC_PMAP_CLNT_H_ */ |