aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/socket/ops_linux.c
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-05-14 16:05:53 +0200
committerAngelo Mantellini <manangel@cisco.com>2019-05-16 13:48:23 +0200
commit5c9b2cd16e76b7d731bd31422b4a555dbeff1541 (patch)
tree1ab57c1e0eb10374879803ef9aee36724ad875ef /hicn-light/src/hicn/socket/ops_linux.c
parent8a4273ffe83b46bc018da58135427d40012282b8 (diff)
[HICN-195] Generate static libs for android
Change-Id: Ib78e0ba5108713c6fac0e422eb7bb6f7ba10abc7 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'hicn-light/src/hicn/socket/ops_linux.c')
-rw-r--r--hicn-light/src/hicn/socket/ops_linux.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hicn-light/src/hicn/socket/ops_linux.c b/hicn-light/src/hicn/socket/ops_linux.c
index d085f0d3d..1356e1ba0 100644
--- a/hicn-light/src/hicn/socket/ops_linux.c
+++ b/hicn-light/src/hicn/socket/ops_linux.c
@@ -224,7 +224,9 @@ int _nl_del_lo_prio_rule(const ip_address_t *ip_address,
#define FLAGS_LIST NLM_F_REQUEST | NLM_F_DUMP
+#ifndef __ANDROID__
#define IF_NAMESIZE 16
+#endif
#define FR_ACT_TO_TBL 1
#define NLMSG_BOTTOM(nlmsg) \
((struct rtattr *)(((void *)(nlmsg)) + NLMSG_ALIGN((nlmsg)->nlmsg_len)))
@@ -1539,8 +1541,9 @@ int _nl_del_lo_prio_rule(const ip_address_t *ip_address, uint8_t address_family,
// #include <net/if.h>
// duplicate declarations, in the meantime
+#ifndef __ANDROID__
#define IF_NAMESIZE 16
-
+#endif
//#define WITH_TUN_PI 1
#ifdef WITH_TUN_PI