diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c4ddb0ad624707e98988bb4b00c87f20f27b306..2e8bf8c33798fad4b250bb4a93869717be2cbbe6 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 39a3ad083d986dcf6c357d059c854e652f6dabeb..261e52dc132fd84b270881655fc3481619193fdb 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;