patch-tirpc_rpc_auth_des_h 905 B

1234567891011121314151617181920212223242526272829303132
  1. --- libtirpc-0.2.3.orig/tirpc/rpc/auth_des.h 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/tirpc/rpc/auth_des.h 2014-03-22 13:20:52.000000000 +0100
  3. @@ -114,17 +114,25 @@ struct authdes_verf {
  4. * Map a des credential into a unix cred.
  5. *
  6. */
  7. -__BEGIN_DECLS
  8. +#ifdef __cplusplus
  9. +extern "C" {
  10. +#endif
  11. extern int authdes_getucred( struct authdes_cred *, uid_t *, gid_t *, int *, gid_t * );
  12. -__END_DECLS
  13. +#ifdef __cplusplus
  14. +}
  15. +#endif
  16. -__BEGIN_DECLS
  17. +#ifdef __cplusplus
  18. +extern "C" {
  19. +#endif
  20. extern bool_t xdr_authdes_cred(XDR *, struct authdes_cred *);
  21. extern bool_t xdr_authdes_verf(XDR *, struct authdes_verf *);
  22. extern int rtime(dev_t, struct netbuf *, int, struct timeval *,
  23. struct timeval *);
  24. extern void kgetnetname(char *);
  25. extern enum auth_stat _svcauth_des(struct svc_req *, struct rpc_msg *);
  26. -__END_DECLS
  27. +#ifdef __cplusplus
  28. +}
  29. +#endif
  30. #endif /* ndef _TI_AUTH_DES_ */