patch-tirpc_rpc_pmap_prot_h 697 B

123456789101112131415161718192021222324252627
  1. --- libtirpc-0.2.3.orig/tirpc/rpc/pmap_prot.h 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/tirpc/rpc/pmap_prot.h 2014-03-22 13:20:52.000000000 +0100
  3. @@ -71,7 +71,6 @@
  4. #ifndef _RPC_PMAP_PROT_H
  5. #define _RPC_PMAP_PROT_H
  6. -#include <sys/cdefs.h>
  7. #define PMAPPORT ((u_short)111)
  8. #define PMAPPROG ((u_long)100000)
  9. @@ -97,10 +96,14 @@ struct pmaplist {
  10. struct pmaplist *pml_next;
  11. };
  12. -__BEGIN_DECLS
  13. +#ifdef __cplusplus
  14. +extern "C" {
  15. +#endif
  16. extern bool_t xdr_pmap(XDR *, struct pmap *);
  17. extern bool_t xdr_pmaplist(XDR *, struct pmaplist **);
  18. extern bool_t xdr_pmaplist_ptr(XDR *, struct pmaplist *);
  19. -__END_DECLS
  20. +#ifdef __cplusplus
  21. +}
  22. +#endif
  23. #endif /* !_RPC_PMAP_PROT_H */