]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/firewall-util-iptables.c
tree-wide: make sure net/if.h is included before any linux/ header
[thirdparty/systemd.git] / src / shared / firewall-util-iptables.c
index b70b74074bf203df04b54eb0ec6e8b5d03dc9682..044d2d074474c91891e4458e075c19477908a4aa 100644 (file)
@@ -1,19 +1,12 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
-/* Temporary work-around for broken glibc vs. linux kernel header definitions
- * This is already fixed upstream, remove this when distributions have updated.
- */
-#define _NET_IF_H 1
-
+/* Make sure the net/if.h header is included before any linux/ one */
+#include <net/if.h>
 #include <arpa/inet.h>
 #include <endian.h>
 #include <errno.h>
 #include <stddef.h>
 #include <string.h>
-#include <net/if.h>
-#ifndef IFNAMSIZ
-#define IFNAMSIZ 16
-#endif
 #include <linux/if.h>
 #include <linux/netfilter_ipv4/ip_tables.h>
 #include <linux/netfilter/nf_nat.h>