From b8e19d3235fe1f5bb830caded0f1c7d35b633e1a Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Fri, 21 Mar 2008 23:47:56 +0100 Subject: [PATCH] Fix compile error when ICMP is not enabled --- src/ICMPSquid.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.47.3