diff --git a/compat/mingw.h b/compat/mingw.h
index 51993ef114b4743267fc7b922dcae68345d2fd0a..b3d299f5bc16810867b7768725b8d33ee999f6b5 100644 (file)
--- a/compat/mingw.h
+++ b/compat/mingw.h
#include <winsock2.h>
#include <winsock2.h>
+#include <ws2tcpip.h>
/*
* things that are not available in header files
/*
* things that are not available in header files
struct hostent *mingw_gethostbyname(const char *host);
#define gethostbyname mingw_gethostbyname
struct hostent *mingw_gethostbyname(const char *host);
#define gethostbyname mingw_gethostbyname
+void mingw_freeaddrinfo(struct addrinfo *res);
+#define freeaddrinfo mingw_freeaddrinfo
+
+int mingw_getaddrinfo(const char *node, const char *service,
+ const struct addrinfo *hints, struct addrinfo **res);
+#define getaddrinfo mingw_getaddrinfo
+
+int mingw_getnameinfo(const struct sockaddr *sa, socklen_t salen,
+ char *host, DWORD hostlen, char *serv, DWORD servlen,
+ int flags);
+#define getnameinfo mingw_getnameinfo
+
int mingw_socket(int domain, int type, int protocol);
#define socket mingw_socket
int mingw_socket(int domain, int type, int protocol);
#define socket mingw_socket