From 17232ccfe263b4f9aa3a4c78e215abf4f2b699be Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 7 Apr 2008 00:40:55 +1200 Subject: [PATCH] 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. --- src/ICMPv4.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.47.2