X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=add2d32274e4ab668cea2bd2bd4dba880a8739d5;hp=fcdcce12a695d74c1635d65491f4fbe70700b9c7;hb=b3b89ab95e626286ad2fe9ccf5b589f153e5aa37;hpb=97bc202a55195296178a5ca9f2cb10e8b6de5ddd diff --git a/src/tcpip.c b/src/tcpip.c index fcdcce1..add2d32 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -25,7 +25,6 @@ #endif #ifdef WIN32 - /* VS 2003 or later has getaddrinfo; older versions do not */ #include #if _MSC_VER >= 1300 @@ -34,14 +33,20 @@ #else #define HAVE_GETADDRINFO 0 #endif +#endif -#else +#if HAVE_NETINET_IN_H #include +#endif +#if HAVE_NETDB_H #include +#endif +#if HAVE_ARPA_INET_H #include +#endif +#if HAVE_NETINET_TCP_H #include #endif - #if HAVE_SYS_SOCKET_H #include #endif