From: Henrik Nordstrom Date: Fri, 21 Mar 2008 22:47:56 +0000 (+0100) Subject: Fix compile error when ICMP is not enabled X-Git-Tag: BASIC_TPROXY4~15^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8e19d3235fe1f5bb830caded0f1c7d35b633e1a;p=thirdparty%2Fsquid.git Fix compile error when ICMP is not enabled --- diff --git a/src/ICMPSquid.cc b/src/ICMPSquid.cc index 188cce381a..d6acd26faa 100644 --- a/src/ICMPSquid.cc +++ b/src/ICMPSquid.cc @@ -263,8 +263,10 @@ ICMPSquid::Open(void) debugs(37, 4, HERE << "Pinger handle: 0x" << std::hex << hIpc << std::dec << ", PID: " << pid); #endif /* _SQUID_MSWIN_ */ -#endif /* USE_ICMP */ return icmp_sock; +#else /* USE_ICMP */ + return -1; +#endif /* USE_ICMP */ } void