summaryrefslogtreecommitdiffstats
path: root/userspace/ebtables2/include/ebtables_u.h
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/ebtables2/include/ebtables_u.h')
-rw-r--r--userspace/ebtables2/include/ebtables_u.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/userspace/ebtables2/include/ebtables_u.h b/userspace/ebtables2/include/ebtables_u.h
index ab615c1..07dae8e 100644
--- a/userspace/ebtables2/include/ebtables_u.h
+++ b/userspace/ebtables2/include/ebtables_u.h
@@ -24,7 +24,14 @@
#ifndef EBTABLES_U_H
#define EBTABLES_U_H
#include <netinet/in.h>
+
+#ifdef __ANDROID_API__
+#pragma message "Found __ANDRIOD_API__, #undef __unused"
+#undef __unused
+#include <ebtables.h>
+#else
#include <linux/netfilter_bridge/ebtables.h>
+#endif
#include <linux/netfilter/x_tables.h>
#ifndef IPPROTO_SCTP