From 77054534101b9297fe23b2d617280d7601825a55 Mon Sep 17 00:00:00 2001 From: Cephas Date: Sat, 28 May 2011 23:01:23 -0600 Subject: [PATCH] Bug 2965: partial: 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 80dd9c6c38..cfa2f3790a 100644 --- a/compat/os/mswin.h +++ b/compat/os/mswin.h @@ -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 */ diff --git a/src/ipc_win32.cc b/src/ipc_win32.cc index 77a354a293..b326f9a7de 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.3