From 7a4184767de3921cd0c7b07f5df18534ebb399d0 Mon Sep 17 00:00:00 2001
From: Pavel Uhanov <pavel.uhanov@demlabs.net>
Date: Fri, 21 Mar 2025 12:24:47 +0300
Subject: [PATCH] [*] fix macos pip error

---
 modules/net/dap_chain_node_rpc.c         | 6 +++---
 modules/net/include/dap_chain_node_rpc.h | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/net/dap_chain_node_rpc.c b/modules/net/dap_chain_node_rpc.c
index d57dbcbf5..e75392e81 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 cc16a91cb..7f2a86e7c 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
-- 
GitLab