From: Amos Jeffries Date: Tue, 9 Sep 2008 11:39:57 +0000 (+1200) Subject: Fix compile error on Cygwin X-Git-Tag: SQUID_3_1_0_1~49^2~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=353942c5497910a1b4ec1c0f2670ec52953432b5;p=thirdparty%2Fsquid.git Fix compile error on Cygwin --- diff --git a/src/WinSvc.cc b/src/WinSvc.cc index 1e0fd2a1fd..ce18682d6e 100644 --- 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) {