aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Żenczykowski <maze@google.com>2021-04-02 21:30:04 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-02 21:30:04 +0000
commit3799b1e13f56f3b14be0ff06ebbcb04254d2a1e3 (patch)
tree830ae286d17f285fb8f7ba1d54aed59654409ff0
parentd5b45ca17da322c83006662f43113491ab2dffbf (diff)
parent7608e136bd495fe734ad18a6897dd4425e1a633b (diff)
downloadiptables-3799b1e13f56f3b14be0ff06ebbcb04254d2a1e3.tar.gz
ANDROID: fix build for missing ETH_ALEN definition am: 7608e136bd
Original change: https://android-review.googlesource.com/c/platform/external/iptables/+/1650937 Change-Id: I161493ffedc6c18aba3c0cb8421913db689321cf
-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>