]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2965: partial: Compile errors on MinGW
authorCephas <squidwin@gmail.com>
Sun, 29 May 2011 05:01:23 +0000 (23:01 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 29 May 2011 05:01:23 +0000 (23:01 -0600)
compat/os/mswin.h
src/ipc_win32.cc

index 80dd9c6c3866fc16c76560e6356a941aa559ef62..cfa2f3790a2a7a90aca4f91a1a13dff71b73532c 100644 (file)
@@ -286,6 +286,9 @@ typedef char * caddr_t;
 #ifndef EAFNOSUPPORT
 #define EAFNOSUPPORT WSAEAFNOSUPPORT
 #endif
+#ifndef ENETUNREACH
+#define ENETUNREACH WSAENETUNREACH
+#endif
 
 #undef h_errno
 #define h_errno errno /* we'll set it ourselves */
index 77a354a293df0fd0e4b1bc6459afa74f13342376..b326f9a7de824885e0fed3db5f2b0fbe4b34b790 100644 (file)
@@ -36,6 +36,8 @@
 #include "squid.h"
 #include "comm.h"
 #include "fde.h"
+#include "ip/Address.h"
+#include "rfc1738.h"
 #include "SquidTime.h"
 
 #ifndef _MSWSOCK_