From e78251ee29491a59daa15cfe8838a5e46decb42c Mon Sep 17 00:00:00 2001 From: deepend Date: Mon, 26 Jan 2026 18:19:14 -0700 Subject: [PATCH] fix(win32): replace netdb.h with ws2tcpip.h for addrinfo APIs --- src/common/network.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/network.c b/src/common/network.c index 0a056098..60dc7e50 100644 --- a/src/common/network.c +++ b/src/common/network.c @@ -18,7 +18,11 @@ /* ipv4 and ipv6 networking functions with a common interface */ #define _POSIX_C_SOURCE 200112L -#include +#ifdef _WIN32 +# include +#else +# include +#endif #include "config.h"