Skip to content
Snippets Groups Projects
Commit 7a418476 authored by pavel.uhanov's avatar pavel.uhanov
Browse files

[*] fix macos pip error

parent 8206043b
No related branches found
No related tags found
1 merge request!2120Draft: feature-15728
Pipeline #52439 failed with stage
in 20 minutes and 21 seconds
...@@ -68,7 +68,7 @@ static void s_collect_cmd_stat_info(int16_t a_cmd_num, int64_t a_call_time) ...@@ -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); atomic_fetch_add(&(s_cmd_call_stat + a_cmd_num)->time, a_call_time);
} }
#ifndef WIN32 #ifdef UNIX
/** /**
* @brief get states info about current * @brief get states info about current
* @param a_arg - pointer to callback arg * @param a_arg - pointer to callback arg
...@@ -133,7 +133,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg) ...@@ -133,7 +133,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg)
return; return;
} }
if (l_role == RPC_ROLE_SERVER) { 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)) { 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"); log_it(L_ERROR, "Can't activate timer on node states update");
} else { } else {
...@@ -141,7 +141,7 @@ void dap_chain_node_rpc_init(dap_config_t *a_cfg) ...@@ -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); dap_cli_server_statistic_callback_add(s_collect_cmd_stat_info);
} }
#else #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 #endif
} }
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "dap_chain_node_cli_cmd.h" #include "dap_chain_node_cli_cmd.h"
#include "dap_config.h" #include "dap_config.h"
#ifndef WIN32 #ifdef UNIX
#include <sys/sysinfo.h> #include <sys/sysinfo.h>
#else #else
struct sysinfo { // temporary added to read struct sysinfo { // temporary added to read
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment