]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2265: --enable-icmp compile fails on FreeBSD
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 6 Apr 2008 12:40:55 +0000 (00:40 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 6 Apr 2008 12:40:55 +0000 (00:40 +1200)
Author: Christos Tsantilas <chtsanti@users.sourceforge.net>

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

index 16a118074ab72eda44423e04bf97da1fe1601f07..e201e71cb27caa83f1d1f79c16bd897d9ce59ec3 100644 (file)
 #include <netinet/ip_icmp.h>
 #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