diff options
Diffstat (limited to 'hicn-light/src/hicn/socket')
-rw-r--r-- | hicn-light/src/hicn/socket/CMakeLists.txt | 8 | ||||
-rw-r--r-- | hicn-light/src/hicn/socket/ops_linux.c | 5 |
2 files changed, 11 insertions, 2 deletions
diff --git a/hicn-light/src/hicn/socket/CMakeLists.txt b/hicn-light/src/hicn/socket/CMakeLists.txt index 6ea94dcfa..ce2a9caf4 100644 --- a/hicn-light/src/hicn/socket/CMakeLists.txt +++ b/hicn-light/src/hicn/socket/CMakeLists.txt @@ -13,7 +13,7 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) -if (UNIX AND NOT APPLE AND NOT ANDROID_API) +if (UNIX AND NOT APPLE) list(APPEND HEADER_FILES socket/api.h socket/error.h @@ -27,5 +27,11 @@ if (UNIX AND NOT APPLE AND NOT ANDROID_API) ) endif() +set(TO_INSTALL_HEADER_FILES + ${TO_INSTALL_HEADER_FILES} + ${HEADER_FILES} + PARENT_SCOPE +) + set(SOURCE_FILES ${SOURCE_FILES} PARENT_SCOPE) set(HEADER_FILES ${HEADER_FILES} PARENT_SCOPE)
\ No newline at end of file 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 |