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