From 829418729fac9af5df9e8e757d5e3bf89cffd19f Mon Sep 17 00:00:00 2001
From: Constantin Papizh <p.const@bk.ru>
Date: Thu, 13 Feb 2020 15:11:22 +0300
Subject: [PATCH] Temporary fix for Win

---
 CMakeLists.txt        | 7 ++++++-
 dap_chain_node_ping.c | 2 ++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2c4ddb0ad6..2e8bf8c337 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,7 +77,12 @@ if(UNIX)
       )
 endif()
 
-target_include_directories(${PROJECT_NAME} INTERFACE . PUBLIC ${IPUTILS_INCLUDE_DIRS})
+target_include_directories(${PROJECT_NAME} INTERFACE . )
+
+if (!WIN32)
+    target_include_directories(${PROJECT_NAME} PUBLIC ${IPUTILS_INCLUDE_DIRS})
+endif()
+
 
 set(${PROJECT_NAME}_DEFINITIONS CACHE INTERNAL "${PROJECT_NAME}: Definitions" FORCE)
 
diff --git a/dap_chain_node_ping.c b/dap_chain_node_ping.c
index 39a3ad083d..261e52dc13 100644
--- a/dap_chain_node_ping.c
+++ b/dap_chain_node_ping.c
@@ -212,7 +212,9 @@ static void* node_ping_background_proc(void *a_arg)
         if(!str_ip4)
             continue;
         int hops = 0, time_usec = 0;
+#ifndef _WIN32
         int res = traceroute_util(str_ip4, &hops, &time_usec);
+#endif
         DAP_DELETE(host4);
         if(l_min_hops>hops)
             s_node_addr_tr = l_node_list->data;
-- 
GitLab