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/auth_unix.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/rpc/auth_unix.h') diff --git a/include/rpc/auth_unix.h b/include/rpc/auth_unix.h index 08e1569..5a26c64 100644 --- a/include/rpc/auth_unix.h +++ b/include/rpc/auth_unix.h @@ -48,6 +48,10 @@ #define _RPC_AUTH_UNIX_H #include +#ifdef __cplusplus +extern "C" { +#endif + /* The machine name is part of a credential; it may not exceed 255 bytes */ #define MAX_MACHINE_NAME 255 @@ -81,4 +85,8 @@ struct short_hand_verf { struct opaque_auth new_cred; }; +#ifdef __cplusplus +} +#endif + #endif /* !_RPC_AUTH_UNIX_H */ -- cgit v1.1