mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 16:00:18 +00:00
fix(win32): replace netdb.h with ws2tcpip.h for addrinfo APIs
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user