patch-tirpc_netconfig_h 577 B

1234567891011121314151617181920212223
  1. --- libtirpc-0.2.3.orig/tirpc/netconfig.h 2013-02-13 16:13:59.000000000 +0100
  2. +++ libtirpc-0.2.3/tirpc/netconfig.h 2014-03-22 13:20:52.000000000 +0100
  3. @@ -74,7 +74,9 @@ typedef struct {
  4. #define NC_UDP "udp"
  5. #define NC_ICMP "icmp"
  6. -__BEGIN_DECLS
  7. +#ifdef __cplusplus
  8. +extern "C" {
  9. +#endif
  10. extern void *setnetconfig (void);
  11. extern struct netconfig *getnetconfig (void *);
  12. @@ -89,6 +91,8 @@ extern int endnetpath (void *);
  13. extern void nc_perror (const char *);
  14. extern char *nc_sperror (void);
  15. -__END_DECLS
  16. +#ifdef __cplusplus
  17. +}
  18. +#endif
  19. #endif /* _NETCONFIG_H_ */