1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

check for and use winsock2.h instead of winsock.h and I fixed a typo in the

ifdefs where . was used instead of _!
This commit is contained in:
Daniel Stenberg 2005-11-16 07:12:37 +00:00
parent b2e553a82e
commit 80bfa76ac9

View File

@ -67,7 +67,7 @@ AC_CHECK_HEADERS(
sys/socket.h \ sys/socket.h \
sys/ioctl.h \ sys/ioctl.h \
netdb.h \ netdb.h \
winsock.h \ winsock2.h \
ws2tcpip.h \ ws2tcpip.h \
netinet/in.h \ netinet/in.h \
net/if.h \ net/if.h \
@ -89,8 +89,8 @@ dnl *Sigh* these are needed in order for net/if.h to get properly detected.
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCK2_H
#include <winsock.h> #include <winsock2.h>
#endif #endif
] ]
) )
@ -104,8 +104,8 @@ AC_CHECK_TYPE(socklen_t, ,
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCK2_H
#include <winsock.h> #include <winsock2.h>
#endif #endif
]) ])
@ -118,8 +118,8 @@ CARES_CHECK_CONSTANT(
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCK2_H
#include <winsock.h> #include <winsock2.h>
#endif #endif
], [PF_INET6], ], [PF_INET6],
@ -135,8 +135,8 @@ CARES_CHECK_CONSTANT(
#ifdef HAVE_SYS_SOCKET_H #ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCK2_H
#include <winsock.h> #include <winsock2.h>
#endif #endif
], [AF_INET6], ], [AF_INET6],
@ -150,10 +150,10 @@ CARES_CHECK_STRUCT(
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCK2_H
#include <winsock.h> #include <winsock2.h>
#endif #endif
#ifdef HAVE_WS2TCPIP.H #ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
@ -169,10 +169,10 @@ CARES_CHECK_STRUCT(
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCK2_H
#include <winsock.h> #include <winsock2.h>
#endif #endif
#ifdef HAVE_WS2TCPIP.H #ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
@ -191,10 +191,10 @@ AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id,
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCK2_H
#include <winsock.h> #include <winsock2.h>
#endif #endif
#ifdef HAVE_WS2TCPIP.H #ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
@ -210,10 +210,10 @@ AC_CHECK_MEMBER(struct addrinfo.ai_flags,
#ifdef HAVE_SYS_TYPES_H #ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif #endif
#ifdef HAVE_WINSOCK_H #ifdef HAVE_WINSOCaK2_H
#include <winsock.h> #include <winsock2.h>
#endif #endif
#ifdef HAVE_WS2TCPIP.H #ifdef HAVE_WS2TCPIP_H
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H