From 15d3627133be187b1d186b0d87d724c68a75d779 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Wed, 8 Aug 2012 01:39:35 -0600 Subject: [PATCH] Windows: fix winsock detection capabilities --- acinclude/os-deps.m4 | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/acinclude/os-deps.m4 b/acinclude/os-deps.m4 index af09ac92be..2e6b80632c 100644 --- a/acinclude/os-deps.m4 +++ b/acinclude/os-deps.m4 @@ -242,11 +242,10 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #if HAVE_SYS_TYPES_H #include #endif -#if HAVE_WINSOCK_H -#include -#endif #if HAVE_WINSOCK2_H #include +#elif HAVE_WINSOCK_H +#include #endif int main(int argc, char **argv) { FILE *fp = fopen("conftestval", "w"); @@ -422,11 +421,10 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #if HAVE_NETINET_IN_H #include #endif -#if HAVE_WINSOCK_H -#include -#endif #if HAVE_WINSOCK2_H #include +#elif HAVE_WINSOCK_H +#include #endif int main(int argc, char **argv) { @@ -473,11 +471,10 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #if HAVE_NETINET_IN_H #include #endif -#if HAVE_WINSOCK_H -#include -#endif #if HAVE_WINSOCK2_H #include +#elif HAVE_WINSOCK_H +#include #endif int main(int argc, char **argv) { @@ -524,11 +521,10 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #if HAVE_NETINET_IN_H #include #endif -#if HAVE_WINSOCK_H -#include -#endif #if HAVE_WINSOCK2_H #include +#elif HAVE_WINSOCK_H +#include #endif int main(int argc, char **argv) { @@ -579,11 +575,10 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #if HAVE_NETINET_IN_H #include #endif -#if HAVE_WINSOCK_H -#include -#endif #if HAVE_WINSOCK2_H #include +#elif HAVE_WINSOCK_H +#include #endif int main(int argc, char **argv) { @@ -892,8 +887,7 @@ AC_DEFUN([SQUID_CHECK_RECV_ARG_TYPE],[ #endif #if HAVE_WINSOCK2_H #include -#endif -#if HAVE_WINSOCK_H +#elif HAVE_WINSOCK_H #include #endif int main (int argc, char ** argv) { -- 2.47.2