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 /sys/rpc/rpc_com.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 'sys/rpc/rpc_com.h')
-rw-r--r-- | sys/rpc/rpc_com.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/rpc/rpc_com.h b/sys/rpc/rpc_com.h index 290a289..6685132 100644 --- a/sys/rpc/rpc_com.h +++ b/sys/rpc/rpc_com.h @@ -114,8 +114,8 @@ extern int __rpc_sockisbound(struct socket*); extern int bindresvport(struct socket *so, struct sockaddr *sa); struct xucred; -struct __rpc_xdr; -bool_t xdr_authunix_parms(struct __rpc_xdr *xdrs, uint32_t *time, struct xucred *cred); +struct XDR; +bool_t xdr_authunix_parms(struct XDR *xdrs, uint32_t *time, struct xucred *cred); #endif __END_DECLS |