Fix c-ares build with msvc

This commit is contained in:
Bert Belder 2011-07-06 04:07:00 +02:00
parent 49baaa4731
commit 6c8d016fb4
3 changed files with 2 additions and 5 deletions

View File

@ -96,9 +96,9 @@ typedef int ares_socklen_t;
# include <sys/socket.h>
# include <tcp.h>
#elif defined(WIN32)
# include <windows.h>
# include <winsock2.h>
# include <ws2tcpip.h>
# include <windows.h>
#else
# include <sys/socket.h>
# include <netinet/in.h>

View File

@ -108,7 +108,6 @@
*/
#ifdef HAVE_WINDOWS_H
# include <windows.h>
# ifdef HAVE_WINSOCK2_H
# include <winsock2.h>
# ifdef HAVE_WS2TCPIP_H
@ -119,6 +118,7 @@
# include <winsock.h>
# endif
# endif
# include <windows.h>
#endif
/*

View File

@ -51,9 +51,6 @@
#define HAVE_UNISTD_H 1
#endif
/* Define if you have the <windows.h> header file. */
#define HAVE_WINDOWS_H 1
/* Define if you have the <winsock.h> header file. */
#define HAVE_WINSOCK_H 1