patch-tirpc_netconfig_h 758 B

123456789101112131415161718192021222324252627282930313233
  1. --- libtirpc-0.2.4.orig/tirpc/netconfig.h 2013-12-09 21:59:51.000000000 +0100
  2. +++ libtirpc-0.2.4/tirpc/netconfig.h 2014-09-28 20:59:27.000000000 +0200
  3. @@ -1,7 +1,9 @@
  4. #ifndef _NETCONFIG_H_
  5. #define _NETCONFIG_H_
  6. +#ifndef __APPLE__
  7. #include <features.h>
  8. +#endif
  9. #define NETCONFIG "/etc/netconfig"
  10. #define NETPATH "NETPATH"
  11. @@ -74,7 +76,9 @@ typedef struct {
  12. #define NC_UDP "udp"
  13. #define NC_ICMP "icmp"
  14. -__BEGIN_DECLS
  15. +#ifdef __cplusplus
  16. +extern "C" {
  17. +#endif
  18. extern void *setnetconfig (void);
  19. extern struct netconfig *getnetconfig (void *);
  20. @@ -89,6 +93,8 @@ extern int endnetpath (void *);
  21. extern void nc_perror (const char *);
  22. extern char *nc_sperror (void);
  23. -__END_DECLS
  24. +#ifdef __cplusplus
  25. +}
  26. +#endif
  27. #endif /* _NETCONFIG_H_ */