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

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