From 0131e16ca7bdaaf41af910bab1391997015e4b6c Mon Sep 17 00:00:00 2001
From: Olzhas <oljas.jarasbaev@demlabs.net>
Date: Thu, 12 Sep 2024 14:35:06 +0700
Subject: [PATCH] [*] fix build

---
 modules/net/dap_chain_net_node_list.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/net/dap_chain_net_node_list.c b/modules/net/dap_chain_net_node_list.c
index 3302f70a57..3664ea0e6e 100644
--- a/modules/net/dap_chain_net_node_list.c
+++ b/modules/net/dap_chain_net_node_list.c
@@ -249,7 +249,7 @@ static int dap_chain_net_node_list_wait(struct node_link_request *a_node_list_re
         return pthread_mutex_unlock(&a_node_list_request->wait_mutex), a_node_list_request->response;
     struct timespec l_cond_timeout;
 #ifdef DAP_OS_DARWIN
-    l_cond_timeout = { .tv_sec = a_timeout_ms / 1000 };
+    l_cond_timeout = (struct timespec){ .tv_sec = a_timeout_ms / 1000 };
 #else
     clock_gettime(CLOCK_MONOTONIC, &l_cond_timeout);
     l_cond_timeout.tv_sec += a_timeout_ms / 1000;
@@ -257,7 +257,7 @@ static int dap_chain_net_node_list_wait(struct node_link_request *a_node_list_re
     while (!a_node_list_request->response) {
         switch (
 #ifdef DAP_OS_DARWIN
-            pthread_cond_timedwait_relative_np(&l_node_list_request->wait_cond, &l_node_list_request->wait_mutex, &l_cond_timeout)
+            pthread_cond_timedwait_relative_np(&a_node_list_request->wait_cond, &a_node_list_request->wait_mutex, &l_cond_timeout)
 #else
             pthread_cond_timedwait(&a_node_list_request->wait_cond, &a_node_list_request->wait_mutex, &l_cond_timeout)
 #endif
-- 
GitLab