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

[*] use DAP_OS_LINUX

parent d1e4335c
No related branches found
No related tags found
1 merge request!2120Draft: feature-15728
Pipeline #52478 passed with stage
in 15 minutes and 28 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);
} }
#ifdef linux #ifdef DAP_OS_LINUX
/** /**
* @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) {
#ifdef linux #ifdef DAP_OS_LINUX
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 avaible only on linux system"); log_it(L_ERROR, "RPC server role avaible only on DAP_OS_LINUX 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"
#ifdef linux #ifdef DAP_OS_LINUX
#include <sys/sysinfo.h> #include <sys/sysinfo.h>
#else #else
struct sysinfo { // temporary added to read struct sysinfo { // temporary added to read
......
...@@ -34,7 +34,6 @@ ...@@ -34,7 +34,6 @@
#include "dap_chain_node_cli_cmd.h" #include "dap_chain_node_cli_cmd.h"
#include "dap_list.h" #include "dap_list.h"
enum emit_delegation_error { enum emit_delegation_error {
DAP_NO_ERROR = 0, DAP_NO_ERROR = 0,
ERROR_MEMORY, ERROR_MEMORY,
......
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