]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2965: Compile errors on MinGW
authorCephas <squidwin@gmail.com>
Thu, 3 Mar 2011 12:20:58 +0000 (01:20 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Mar 2011 12:20:58 +0000 (01:20 +1300)
compat/os/mswin.h
src/ipc_win32.cc

index 2ba94f92c2ce09d98f79d83d72841dad8bc0d7d1..5942fadbbf6c146810397c15937c846bdacc8cb8 100644 (file)
@@ -273,6 +273,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 9aacdabc2da8b185a52145e9b0a7636dc3753f1f..c16bee9470735eac1885ecad894264d67a02524d 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_