patch-tirpc_rpc_rpc_msg_h 639 B

1234567891011121314151617181920212223
  1. --- libtirpc-0.2.5.orig/tirpc/rpc/rpc_msg.h 2014-08-08 11:24:34.000000000 -0500
  2. +++ libtirpc-0.2.5/tirpc/rpc/rpc_msg.h 2015-02-10 11:20:21.923005126 -0600
  3. @@ -161,7 +161,9 @@ struct rpc_msg {
  4. #define acpted_rply ru.RM_rmb.ru.RP_ar
  5. #define rjcted_rply ru.RM_rmb.ru.RP_dr
  6. -__BEGIN_DECLS
  7. +#ifdef __cplusplus
  8. +extern "C" {
  9. +#endif
  10. /*
  11. * XDR routine to handle a rpc message.
  12. * xdr_callmsg(xdrs, cmsg)
  13. @@ -210,6 +212,8 @@ extern bool_t xdr_rejected_reply(XDR *,
  14. * struct rpc_err *error;
  15. */
  16. extern void _seterr_reply(struct rpc_msg *, struct rpc_err *);
  17. -__END_DECLS
  18. +#ifdef __cplusplus
  19. +}
  20. +#endif
  21. #endif /* !_TIRPC_RPC_MSG_H */