patch-tirpc_rpc_nettype_h 537 B

1234567891011121314151617181920
  1. --- libtirpc-0.2.3.orig/tirpc/rpc/nettype.h 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/tirpc/rpc/nettype.h 2014-03-22 13:20:52.000000000 +0100
  3. @@ -53,11 +53,15 @@
  4. #define _RPC_TCP 7
  5. #define _RPC_UDP 8
  6. -__BEGIN_DECLS
  7. +#ifdef __cplusplus
  8. +extern "C" {
  9. +#endif
  10. extern void *__rpc_setconf(const char *);
  11. extern void __rpc_endconf(void *);
  12. extern struct netconfig *__rpc_getconf(void *);
  13. extern struct netconfig *__rpc_getconfip(const char *);
  14. -__END_DECLS
  15. +#ifdef __cplusplus
  16. +}
  17. +#endif
  18. #endif /* !_TIRPC_NETTYPE_H */