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