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

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