From 3718e549ee31ac764b327bbf3d6e51dd7e224b46 Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Thu, 26 Mar 2020 12:02:23 +0100 Subject: [HICN-581] update hicn stack to support windows, again Signed-off-by: Angelo Mantellini Change-Id: Ic5cfeae600fde8140a076807fa1e411da1933a02 --- utils/CMakeLists.txt | 2 +- utils/src/ping_server.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt index 3e99fbae2..d82425236 100644 --- a/utils/CMakeLists.txt +++ b/utils/CMakeLists.txt @@ -35,7 +35,7 @@ set(HICN_UTILS hicn-utils CACHE INTERNAL "" FORCE) if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) find_package(Libtransport REQUIRED) else() - if (${CMAKE_SYSTEM_NAME} STREQUAL "Android") + if (DISABLE_SHARED_LIBRARIES) set(LIBTRANSPORT_LIBRARIES ${LIBTRANSPORT_STATIC}) set(DEPENDENCIES ${LIBTRANSPORT_STATIC}) else () diff --git a/utils/src/ping_server.cc b/utils/src/ping_server.cc index de02a2072..b1a6e1509 100644 --- a/utils/src/ping_server.cc +++ b/utils/src/ping_server.cc @@ -16,6 +16,7 @@ #include #ifndef _WIN32 #include +#include #else #include #endif @@ -26,7 +27,7 @@ #include #include -#include + #include namespace transport { -- cgit 1.2.3-korg