patch-xio-ip4_c 370 B

123456789101112
  1. --- socat-1.7.2.2.orig/xio-ip4.c 2010-10-06 09:25:30.000000000 +0200
  2. +++ socat-1.7.2.2/xio-ip4.c 2013-12-25 15:46:30.000000000 +0100
  3. @@ -13,6 +13,9 @@
  4. #include "xio-ip.h"
  5. #include "xio-ip4.h"
  6. +#if !defined(__GLIBC__)
  7. +# define NETDB_INTERNAL -1
  8. +#endif
  9. int xioparsenetwork_ip4(const char *rangename, struct xiorange *range) {
  10. struct hostent *maskaddr;