]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: Visual Studio needs winsock2.h before ws2tcpip.h inclusion.
authorserassio <>
Mon, 21 Jan 2008 00:36:43 +0000 (00:36 +0000)
committerserassio <>
Mon, 21 Jan 2008 00:36:43 +0000 (00:36 +0000)
include/squid_mswin.h

index 9c398df0b6e306c6200344f13856150dbad73ade..6f0468d74be78b71738c2736d855aa8132fc03d4 100755 (executable)
@@ -1,5 +1,5 @@
 /*
- * $Id: squid_mswin.h,v 1.7 2007/12/14 23:11:44 amosjeffries Exp $
+ * $Id: squid_mswin.h,v 1.8 2008/01/20 17:36:43 serassio Exp $
  *
  * AUTHOR: Andrey Shorin <tolsty@tushino.com>
  * AUTHOR: Guido Serassio <serassio@squid-cache.org>
@@ -211,6 +211,9 @@ struct timezone
 #include <stddef.h>
 #include <process.h>
 #include <errno.h>
+#if defined(_MSC_VER) /* Microsoft C Compiler ONLY */
+#include <winsock2.h>
+#endif
 #include <ws2tcpip.h>
 #if defined(_MSC_VER) /* Microsoft C Compiler ONLY */
 /* Hack to suppress compiler warnings on FD_SET() & FD_CLR() */