@@ -25,13 +25,17 @@ #include #include -#ifndef _WIN32 +#ifdef HAVE_NETINET_IN_H # include +#endif +#ifdef HAVE_ARPA_INET_H # include +#endif +#ifdef HAVE_NETDB_H # include #endif #import "OFTCPSocket.h" #import "OFTCPSocket+SOCKS5.h" @@ -66,10 +70,14 @@ # endif # ifndef AI_NUMERICHOST # define AI_NUMERICHOST 0 # endif #endif + +#ifndef SOMAXCONN +# define SOMAXCONN 32 +#endif #if defined(OF_HAVE_THREADS) && !defined(HAVE_THREADSAFE_GETADDRINFO) # import "OFMutex.h" # import "OFDataArray.h"