From de3b7ce9e30fe29a48848fcebe6cd35f3a256d58 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 21 Oct 2023 17:51:49 +0200 Subject: [PATCH] Use SENETUNREACH to fix some windows builds In src/socket.h SENETUNREACH is already defined as WSAENETUNREACH on Windows and ENETUNREACH on Linux. --- src/agent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent.c b/src/agent.c index bb77debd..679393cc 100644 --- a/src/agent.c +++ b/src/agent.c @@ -1598,7 +1598,7 @@ int agent_send_stun_binding(juice_agent_t *agent, agent_stun_entry_t *entry, stu // Direct send int ret = agent_direct_send(agent, &entry->record, buffer, size, 0); if (ret < 0) { - if (ret == ENETUNREACH) + if (ret == SENETUNREACH) JLOG_INFO("STUN binding failed: Network unreachable"); else JLOG_WARN("STUN message send failed");