Include ws2tcpip.h header (for getaddrinfo) on Windows
This commit is contained in:
@@ -39,7 +39,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#if defined(WINSOCK)
|
#if defined(WINSOCK)
|
||||||
# include <winsock.h>
|
# include <winsock2.h>
|
||||||
|
# include <ws2tcpip.h>
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
#else
|
#else
|
||||||
# include <sys/types.h>
|
# include <sys/types.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user