Maybe include <netdn.h>, maybe include <ws2tcpip.h>

This commit is contained in:
Love Hornquist Astrand
2009-09-19 17:53:56 -07:00
parent cadd62466b
commit cfafa64f83

View File

@@ -594,16 +594,26 @@ rk_CHECK_VAR(h_errno,
#endif #endif
#ifdef HAVE_NETDB_H #ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>
#endif]) #endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif
])
rk_CHECK_VAR(h_errlist, rk_CHECK_VAR(h_errlist,
[#ifdef HAVE_NETDB_H [#ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif]) #endif])
rk_CHECK_VAR(h_nerr, rk_CHECK_VAR(h_nerr,
[#ifdef HAVE_NETDB_H [#ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h>
#endif]) #endif])
rk_CHECK_VAR([__progname], rk_CHECK_VAR([__progname],
@@ -665,7 +675,9 @@ AC_HAVE_TYPE([struct sockaddr_storage], [
#endif]) #endif])
AC_HAVE_TYPE([struct addrinfo], [ AC_HAVE_TYPE([struct addrinfo], [
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>
#endif
#ifdef HAVE_WS2TCPIP_H #ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif]) #endif])