summaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-05-13 14:42:24 +0200
committerAngelo Mantellini <manangel@cisco.com>2019-05-13 14:43:45 +0200
commit0a0e51426506985ae1e7cf8c581d109fdad7a725 (patch)
treeb6ce789c802c906c5644f89c1d5a1fa891e9c5a2 /libtransport
parent7772439ac913ae1d50b4ee31688efac1fba42435 (diff)
[HICN-194] support for android environment
Change-Id: I11a614709152035784e492ccd99bc383765a0aa1 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
Diffstat (limited to 'libtransport')
-rw-r--r--libtransport/CMakeLists.txt4
-rw-r--r--libtransport/src/hicn/transport/utils/membuf.h2
2 files changed, 6 insertions, 0 deletions
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 <type_traits>
#include <vector>
+#include <stdlib.h>
+
#ifndef _WIN32
TRANSPORT_GNU_DISABLE_WARNING("-Wshadow")
#endif