Blame SOURCES/squid-3.5.9-include-guards.patch

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