5a1e61f
From d9e075d88e7d9d82464147d8283771d709c14ef8 Mon Sep 17 00:00:00 2001
ebd481a
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
ebd481a
Date: Tue, 9 Feb 2016 15:13:33 -0500
ebd481a
Subject: [PATCH] Add a workaround for {linux/net}/if.h conflict
ebd481a
ebd481a
Include linux/if.h and make sure we don't include the other file.
ebd481a
ebd481a
https://bugzilla.redhat.com/show_bug.cgi?id=1300256
ebd481a
---
5a1e61f
 src/shared/firewall-util.c | 3 ++-
5a1e61f
 1 file changed, 2 insertions(+), 1 deletion(-)
ebd481a
ebd481a
diff --git a/src/shared/firewall-util.c b/src/shared/firewall-util.c
5a1e61f
index 0d3da2e..c38f9cc 100644
ebd481a
--- a/src/shared/firewall-util.c
ebd481a
+++ b/src/shared/firewall-util.c
5a1e61f
@@ -16,15 +16,16 @@
5a1e61f
   You should have received a copy of the GNU Lesser General Public License
ebd481a
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
ebd481a
 ***/
ebd481a
+#define _NET_IF_H 1
5a1e61f
 
5a1e61f
 #include <alloca.h>
ebd481a
 #include <arpa/inet.h>
5a1e61f
 #include <endian.h>
5a1e61f
 #include <errno.h>
ebd481a
-#include <net/if.h>
5a1e61f
 #include <stddef.h>
5a1e61f
 #include <string.h>
5a1e61f
 #include <sys/socket.h>
ebd481a
+#include <linux/if.h>
ebd481a
 #include <linux/netfilter_ipv4/ip_tables.h>
ebd481a
 #include <linux/netfilter/nf_nat.h>
ebd481a
 #include <linux/netfilter/xt_addrtype.h>
ebd481a
-- 
5a1e61f
2.5.0
ebd481a