--- socat-1.7.2.4.orig/compat.h+++ socat-1.7.2.4/compat.h@@ -656,6 +656,10 @@ # define NETDB_INTERNAL h_NETDB_INTERNAL #endif +#if !defined(NETDB_INTERNAL)+# define NETDB_INTERNAL (-1)+#endif+ #ifndef INET_ADDRSTRLEN # define INET_ADDRSTRLEN sizeof(struct sockaddr_in) #endif