From a13c93d1c415707b3696084494fa5e4dc70878f4 Mon Sep 17 00:00:00 2001 From: Cephas Date: Fri, 4 Mar 2011 01:20:58 +1300 Subject: [PATCH] Bug 2965: Compile errors on MinGW --- compat/os/mswin.h | 3 +++ src/ipc_win32.cc | 2 ++ 2 files changed, 5 insertions(+) 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_ -- 2.47.2