aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2021-03-23 17:08:08 -0700
committerMaciej Żenczykowski <maze@google.com>2021-03-23 17:18:07 -0700
commit7608e136bd495fe734ad18a6897dd4425e1a633b (patch)
tree830ae286d17f285fb8f7ba1d54aed59654409ff0
parent234472c9f2940cb32471a85e7e3eaf163cdf2dd7 (diff)
downloadiptables-7608e136bd495fe734ad18a6897dd4425e1a633b.tar.gz
ANDROID: fix build for missing ETH_ALEN definition
Test: see followup commits Bug: 183485987 Signed-off-by: Maciej Żenczykowski <maze@google.com> Change-Id: I2322f6e9a1f7a54adceeaf9cb3fe9b4cf78b1885
-rw-r--r--libxtables/xtables.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
index 9d309e33..35fa6258 100644
--- a/libxtables/xtables.c
+++ b/libxtables/xtables.c
@@ -45,6 +45,9 @@
#include <xtables.h>
#include <limits.h> /* INT_MAX in ip_tables.h/ip6_tables.h */
+#ifdef __BIONIC__
+#include <linux/if_ether.h> /* ETH_ALEN */
+#endif
#include <linux/netfilter_ipv4/ip_tables.h>
#include <linux/netfilter_ipv6/ip6_tables.h>
#include <libiptc/libxtc.h>