From: Amos Jeffries Date: Tue, 9 Sep 2008 13:38:02 +0000 (+1200) Subject: Fix compile error on Cygwin X-Git-Tag: SQUID_3_0_STABLE9~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=517252a4f83c169c941bf9eca8d60a61a721850d;p=thirdparty%2Fsquid.git Fix compile error on Cygwin --- diff --git a/src/WinSvc.cc b/src/WinSvc.cc index daae1f758d..c53df697c0 100755 --- a/src/WinSvc.cc +++ b/src/WinSvc.cc @@ -66,10 +66,10 @@ static void Win32SockCleanup(void); SQUIDCEXTERN LPCRITICAL_SECTION dbg_mutex; void WIN32_ExceptionHandlerCleanup(void); static int s_iInitCount = 0; -#endif +static HANDLE NotifyAddrChange_thread = INVALID_HANDLE_VALUE; +#endif /* _SQUID_MSWIN_ */ static int Squid_Aborting = 0; -static HANDLE NotifyAddrChange_thread = INVALID_HANDLE_VALUE; #undef NotifyAddrChange typedef DWORD(WINAPI * PFNotifyAddrChange) (OUT PHANDLE, IN LPOVERLAPPED); @@ -473,7 +473,7 @@ WIN32_IpAddrChangeMonitorInit() } return status; } -#endif +#endif /* _SQUID_MSWIN_ */ int WIN32_Subsystem_Init(int * argc, char *** argv) {