From: Cephas Date: Thu, 3 Mar 2011 12:20:58 +0000 (+1300) Subject: Bug 2965: Compile errors on MinGW X-Git-Tag: take06~27^2~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a13c93d1c415707b3696084494fa5e4dc70878f4;p=thirdparty%2Fsquid.git Bug 2965: Compile errors on MinGW --- diff --git a/compat/os/mswin.h b/compat/os/mswin.h index 2ba94f92c2..5942fadbbf 100644 --- a/compat/os/mswin.h +++ b/compat/os/mswin.h @@ -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 */ diff --git a/src/ipc_win32.cc b/src/ipc_win32.cc index 9aacdabc2d..c16bee9470 100644 --- a/src/ipc_win32.cc +++ b/src/ipc_win32.cc @@ -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_