diff --git a/modules/net/dap_chain_node_rpc.c b/modules/net/dap_chain_node_rpc.c index d57dbcbf582006ae7ddaa8509e538e922f031ecb..e75392e81537373d218bcfe2966bd4d87b86f594 100644 --- a/modules/net/dap_chain_node_rpc.c +++ b/modules/net/dap_chain_node_rpc.c @@ -68,7 +68,7 @@ static void s_collect_cmd_stat_info(int16_t a_cmd_num, int64_t a_call_time) atomic_fetch_add(&(s_cmd_call_stat + a_cmd_num)->time, a_call_time); } -#ifndef WIN32 +#ifdef UNIX /** * @brief get states info about current * @param a_arg - pointer to callback arg @@ -133,7 +133,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg) return; } if (l_role == RPC_ROLE_SERVER) { -#ifndef WIN32 +#ifdef UNIX if (dap_proc_thread_timer_add(NULL, s_update_node_rpc_states_info, NULL, s_timer_update_states_info)) { log_it(L_ERROR, "Can't activate timer on node states update"); } else { @@ -141,7 +141,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg) dap_cli_server_statistic_callback_add(s_collect_cmd_stat_info); } #else - log_it(L_ERROR, "RPC server role on win32 not avaible"); + log_it(L_ERROR, "RPC server role avaible only on unix system"); #endif } } diff --git a/modules/net/include/dap_chain_node_rpc.h b/modules/net/include/dap_chain_node_rpc.h index cc16a91cb423acc16e0b5b94fa9184349b901ae1..7f2a86e7ca2db4e255de91c20292fd53537a2100 100644 --- a/modules/net/include/dap_chain_node_rpc.h +++ b/modules/net/include/dap_chain_node_rpc.h @@ -23,7 +23,7 @@ #include "dap_chain_node_cli_cmd.h" #include "dap_config.h" -#ifndef WIN32 +#ifdef UNIX #include <sys/sysinfo.h> #else struct sysinfo { // temporary added to read