From ebd481af7f13d9735f583cc384dfd1109742e3a4 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Feb 10 2016 20:05:03 +0000 Subject: Add patch to fix {net,linux}/if.h conflict --- diff --git a/0999-Add-a-workaround-for-linux-net-if.h-conflict.patch b/0999-Add-a-workaround-for-linux-net-if.h-conflict.patch new file mode 100644 index 0000000..043e020 --- /dev/null +++ b/0999-Add-a-workaround-for-linux-net-if.h-conflict.patch @@ -0,0 +1,32 @@ +From ee3b68041ed9cf19b3dd18c4d1bb342abec7d2ac Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= +Date: Tue, 9 Feb 2016 15:13:33 -0500 +Subject: [PATCH] Add a workaround for {linux/net}/if.h conflict + +Include linux/if.h and make sure we don't include the other file. + +https://bugzilla.redhat.com/show_bug.cgi?id=1300256 +--- + src/shared/firewall-util.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/shared/firewall-util.c b/src/shared/firewall-util.c +index 5acfb0191b..95335498ef 100644 +--- a/src/shared/firewall-util.c ++++ b/src/shared/firewall-util.c +@@ -19,9 +19,11 @@ + along with systemd; If not, see . + ***/ + ++#define _NET_IF_H 1 ++ + #include +-#include + #include ++#include + #include + #include + #include +-- +1.9.2.649.g5ae4ba5 + diff --git a/systemd.spec b/systemd.spec index d992524..479a451 100644 --- a/systemd.spec +++ b/systemd.spec @@ -39,6 +39,8 @@ Patch0002: 0002-lz4-fix-size-check-which-had-no-chance-of-working-on.patch Patch0003: 0003-tests-fix-newlines-in-skip-message.patch Patch0004: 0004-core-Do-not-bind-a-mount-unit-to-a-device-if-it-was-.patch +Patch0999: 0999-Add-a-workaround-for-linux-net-if.h-conflict.patch + # kernel-install patch for grubby, drop if grubby is obsolete Patch1000: kernel-install-grubby.patch