4b8bb63
------------------------------------------------------------
4b8bb63
revno: 14311
4b8bb63
revision-id: squid3@treenet.co.nz-20150924130537-lqwzd1z99a3l9gt4
4b8bb63
parent: squid3@treenet.co.nz-20150924032241-6cx3g6hwz9xfoybr
4b8bb63
------------------------------------------------------------
4b8bb63
revno: 14311
4b8bb63
revision-id: squid3@treenet.co.nz-20150924130537-lqwzd1z99a3l9gt4
4b8bb63
parent: squid3@treenet.co.nz-20150924032241-6cx3g6hwz9xfoybr
4b8bb63
fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=4323
4b8bb63
author: Francesco Chemolli <kinkie@squid-cache.org>
4b8bb63
committer: Amos Jeffries <squid3@treenet.co.nz>
4b8bb63
branch nick: trunk
4b8bb63
timestamp: Thu 2015-09-24 06:05:37 -0700
4b8bb63
message:
4b8bb63
  Bug 4323: Netfilter broken cross-includes with Linux 4.2
4b8bb63
------------------------------------------------------------
4b8bb63
# Bazaar merge directive format 2 (Bazaar 0.90)
4b8bb63
# revision_id: squid3@treenet.co.nz-20150924130537-lqwzd1z99a3l9gt4
4b8bb63
# target_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/
4b8bb63
# testament_sha1: c67cfca81040f3845d7c4caf2f40518511f14d0b
4b8bb63
# timestamp: 2015-09-24 13:06:33 +0000
4b8bb63
# source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk
4b8bb63
# base_revision_id: squid3@treenet.co.nz-20150924032241-\
4b8bb63
#   6cx3g6hwz9xfoybr
4b8bb63
# 
4b8bb63
# Begin patch
4b8bb63
=== modified file 'compat/os/linux.h'
4b8bb63
--- compat/os/linux.h	2015-01-13 07:25:36 +0000
4b8bb63
+++ compat/os/linux.h	2015-09-24 13:05:37 +0000
4b8bb63
@@ -30,6 +30,21 @@
4b8bb63
 #endif
4b8bb63
 
4b8bb63
 /*
4b8bb63
+ * Netfilter header madness. (see Bug 4323)
4b8bb63
+ *
4b8bb63
+ * Netfilter have a history of defining their own versions of network protocol
4b8bb63
+ * primitives without sufficient protection against the POSIX defines which are
4b8bb63
+ * aways present in Linux.
4b8bb63
+ *
4b8bb63
+ * netinet/in.h must be included before any other sys header in order to properly
4b8bb63
+ * activate include guards in <linux/libc-compat.h> the kernel maintainers added
4b8bb63
+ * to workaround it.
4b8bb63
+ */
4b8bb63
+#if HAVE_NETINET_IN_H
4b8bb63
+#include <netinet/in.h>
4b8bb63
+#endif
4b8bb63
+
4b8bb63
+/*
4b8bb63
  * sys/capability.h is only needed in Linux apparently.
4b8bb63
  *
4b8bb63
  * HACK: LIBCAP_BROKEN Ugly glue to get around linux header madness colliding with glibc
4b8bb63
fixes bug: http://bugs.squid-cache.org/show_bug.cgi?id=4323
4b8bb63
author: Francesco Chemolli <kinkie@squid-cache.org>
4b8bb63
committer: Amos Jeffries <squid3@treenet.co.nz>
4b8bb63
branch nick: trunk
4b8bb63
timestamp: Thu 2015-09-24 06:05:37 -0700
4b8bb63
message:
4b8bb63
  Bug 4323: Netfilter broken cross-includes with Linux 4.2
4b8bb63
------------------------------------------------------------
4b8bb63
# Bazaar merge directive format 2 (Bazaar 0.90)
4b8bb63
# revision_id: squid3@treenet.co.nz-20150924130537-lqwzd1z99a3l9gt4
4b8bb63
# target_branch: http://bzr.squid-cache.org/bzr/squid3/trunk/
4b8bb63
# testament_sha1: c67cfca81040f3845d7c4caf2f40518511f14d0b
4b8bb63
# timestamp: 2015-09-24 13:06:33 +0000
4b8bb63
# source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk
4b8bb63
# base_revision_id: squid3@treenet.co.nz-20150924032241-\
4b8bb63
#   6cx3g6hwz9xfoybr
4b8bb63
# 
4b8bb63
# Begin patch
4b8bb63
=== modified file 'compat/os/linux.h'
4b8bb63
--- compat/os/linux.h	2015-01-13 07:25:36 +0000
4b8bb63
+++ compat/os/linux.h	2015-09-24 13:05:37 +0000
4b8bb63
@@ -30,6 +30,21 @@
4b8bb63
 #endif
4b8bb63
 
4b8bb63
 /*
4b8bb63
+ * Netfilter header madness. (see Bug 4323)
4b8bb63
+ *
4b8bb63
+ * Netfilter have a history of defining their own versions of network protocol
4b8bb63
+ * primitives without sufficient protection against the POSIX defines which are
4b8bb63
+ * aways present in Linux.
4b8bb63
+ *
4b8bb63
+ * netinet/in.h must be included before any other sys header in order to properly
4b8bb63
+ * activate include guards in <linux/libc-compat.h> the kernel maintainers added
4b8bb63
+ * to workaround it.
4b8bb63
+ */
4b8bb63
+#if HAVE_NETINET_IN_H
4b8bb63
+#include <netinet/in.h>
4b8bb63
+#endif
4b8bb63
+
4b8bb63
+/*
4b8bb63
  * sys/capability.h is only needed in Linux apparently.
4b8bb63
  *
4b8bb63
  * HACK: LIBCAP_BROKEN Ugly glue to get around linux header madness colliding with glibc
4b8bb63