aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2021-04-03 00:01:26 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-03 00:01:26 +0000
commit3a6c9c3ae24f6cc3e1db166e66f10592fb97bec8 (patch)
tree830ae286d17f285fb8f7ba1d54aed59654409ff0
parent707f081c23c9a6d6cb4a5539cf636dff66729d61 (diff)
parent9ac820c64f8b571c1a33fdbfaa178ff7defee600 (diff)
downloadiptables-3a6c9c3ae24f6cc3e1db166e66f10592fb97bec8.tar.gz
ANDROID: fix build for missing ETH_ALEN definition am: 7608e136bd am: 3799b1e13f am: f751c1415e am: 9ac820c64f
Original change: https://android-review.googlesource.com/c/platform/external/iptables/+/1650937 Change-Id: I5e2418aec5ae097d86a301e8a122dfde8ca7088b
-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>