From 0a0e51426506985ae1e7cf8c581d109fdad7a725 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Mon, 13 May 2019 14:42:24 +0200 Subject: [HICN-194] support for android environment Change-Id: I11a614709152035784e492ccd99bc383765a0aa1 Signed-off-by: Angelo Mantellini --- libtransport/CMakeLists.txt | 4 ++++ libtransport/src/hicn/transport/utils/membuf.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'libtransport') diff --git a/libtransport/CMakeLists.txt b/libtransport/CMakeLists.txt index 5cd33cfdc..757521574 100644 --- a/libtransport/CMakeLists.txt +++ b/libtransport/CMakeLists.txt @@ -107,6 +107,10 @@ if (${COMPILE_TESTS}) ) endif() +if(ANDROID_API) +find_package(OpenSSL REQUIRED) +endif () + list(APPEND LIBRARIES ${LIBPARC_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} diff --git a/libtransport/src/hicn/transport/utils/membuf.h b/libtransport/src/hicn/transport/utils/membuf.h index a150483b1..66e9d7afa 100644 --- a/libtransport/src/hicn/transport/utils/membuf.h +++ b/libtransport/src/hicn/transport/utils/membuf.h @@ -35,6 +35,8 @@ #include #include +#include + #ifndef _WIN32 TRANSPORT_GNU_DISABLE_WARNING("-Wshadow") #endif -- cgit 1.2.3-korg