From: Amos Jeffries Date: Sun, 6 Apr 2008 12:40:55 +0000 (+1200) Subject: Bug 2265: --enable-icmp compile fails on FreeBSD X-Git-Tag: BASIC_TPROXY4~3^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=17232ccfe263b4f9aa3a4c78e215abf4f2b699be;p=thirdparty%2Fsquid.git Bug 2265: --enable-icmp compile fails on FreeBSD Author: Christos Tsantilas Re-introduces definition of icmphdr/icmp for OS which do not define them. This code was removed during the initial re-write because it was thought , incorrectly, to be no longer needed. --- diff --git a/src/ICMPv4.h b/src/ICMPv4.h index 16a118074a..e201e71cb2 100644 --- a/src/ICMPv4.h +++ b/src/ICMPv4.h @@ -51,6 +51,15 @@ #include #endif +#ifndef _SQUID_LINUX_ +#ifndef _SQUID_CYGWIN_ +#ifndef _SQUID_MSWIN_ +#define icmphdr icmp +#define iphdr ip +#endif +#endif +#endif + /* Linux uses its own field names. */ #if defined (_SQUID_LINUX_) #ifdef icmp_id