fix(win32): replace netdb.h with ws2tcpip.h for addrinfo APIs

This commit is contained in:
2026-01-26 18:19:14 -07:00
parent b960f62d2a
commit e78251ee29

View File

@@ -18,7 +18,11 @@
/* ipv4 and ipv6 networking functions with a common interface */
#define _POSIX_C_SOURCE 200112L
#include <netdb.h>
#ifdef _WIN32
# include <ws2tcpip.h>
#else
# include <netdb.h>
#endif
#include "config.h"