patch-tirpc_rpc_pmap_clnt_h 725 B

12345678910111213141516171819202122232425
  1. --- libtirpc-0.2.3.orig/tirpc/rpc/pmap_clnt.h 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/tirpc/rpc/pmap_clnt.h 2014-03-22 13:20:52.000000000 +0100
  3. @@ -63,9 +63,10 @@
  4. #ifndef _RPC_PMAP_CLNT_H_
  5. #define _RPC_PMAP_CLNT_H_
  6. -#include <sys/cdefs.h>
  7. -__BEGIN_DECLS
  8. +#ifdef __cplusplus
  9. +extern "C" {
  10. +#endif
  11. extern bool_t pmap_set(u_long, u_long, int, int);
  12. extern bool_t pmap_unset(u_long, u_long);
  13. extern struct pmaplist *pmap_getmaps(struct sockaddr_in *);
  14. @@ -80,6 +81,8 @@ extern enum clnt_stat clnt_broadcast(u_l
  15. resultproc_t);
  16. extern u_short pmap_getport(struct sockaddr_in *,
  17. u_long, u_long, u_int);
  18. -__END_DECLS
  19. +#ifdef __cplusplus
  20. +}
  21. +#endif
  22. #endif /* !_RPC_PMAP_CLNT_H_ */