From 71704d3105b35bbba9b4058fd3a079c606b2528e Mon Sep 17 00:00:00 2001
From: Pavel Uhanov <pavel.uhanov@demlabs.net>
Date: Mon, 24 Mar 2025 11:19:06 +0300
Subject: [PATCH] [*] use DAP_OS_LINUX

---
 modules/net/dap_chain_node_rpc.c                            | 6 +++---
 modules/net/include/dap_chain_node_rpc.h                    | 2 +-
 .../service/emit-delegate/dap_chain_net_srv_emit_delegate.c | 1 -
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/net/dap_chain_node_rpc.c b/modules/net/dap_chain_node_rpc.c
index bcc7dca62b..b7cc8d1282 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);
 }
 
-#ifdef linux
+#ifdef DAP_OS_LINUX
 /**
  * @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) {
-#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)) {
                 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 avaible only on linux system");
+            log_it(L_ERROR, "RPC server role avaible only on DAP_OS_LINUX system");
 #endif
         }
     }
diff --git a/modules/net/include/dap_chain_node_rpc.h b/modules/net/include/dap_chain_node_rpc.h
index 7fccec8654..ccb9e48da0 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"
 
-#ifdef linux
+#ifdef DAP_OS_LINUX
 #include <sys/sysinfo.h>
 #else
 struct sysinfo {  // temporary added to read
diff --git a/modules/service/emit-delegate/dap_chain_net_srv_emit_delegate.c b/modules/service/emit-delegate/dap_chain_net_srv_emit_delegate.c
index a46c564b0b..1788880bc2 100644
--- a/modules/service/emit-delegate/dap_chain_net_srv_emit_delegate.c
+++ b/modules/service/emit-delegate/dap_chain_net_srv_emit_delegate.c
@@ -34,7 +34,6 @@
 #include "dap_chain_node_cli_cmd.h"
 #include "dap_list.h"
 
-
 enum emit_delegation_error {
     DAP_NO_ERROR = 0,
     ERROR_MEMORY,
-- 
GitLab