aboutsummaryrefslogtreecommitdiff
path: root/src/win32_compatibility.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32_compatibility.h')
-rw-r--r--src/win32_compatibility.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/win32_compatibility.h b/src/win32_compatibility.h
index 7d1f79b..8bf3a00 100644
--- a/src/win32_compatibility.h
+++ b/src/win32_compatibility.h
@@ -17,6 +17,7 @@
17#ifdef WIN32 17#ifdef WIN32
18 18
19#include <Winsock2.h> 19#include <Winsock2.h>
20#include <ws2tcpip.h>
20#include "fstring.h" 21#include "fstring.h"
21 22
22#ifndef TEMP_FAILURE_RETRY 23#ifndef TEMP_FAILURE_RETRY
@@ -41,6 +42,10 @@ namespace DynamicWinsock2
41 u_short htons(u_short in); 42 u_short htons(u_short in);
42 u_long htonl(u_long in); 43 u_long htonl(u_long in);
43 struct hostent *gethostbyname(const char *name); 44 struct hostent *gethostbyname(const char *name);
45 void freeaddrinfo(struct addrinfo *ai);
46 int getaddrinfo(
47 const char *nodename, const char *servname,
48 const struct addrinfo *hints, struct addrinfo **res );
44 int connect(SOCKET s, const struct sockaddr *serv_addr, int addrlen); 49 int connect(SOCKET s, const struct sockaddr *serv_addr, int addrlen);
45 int getpeername(SOCKET s, struct sockaddr *name, int *namelen); 50 int getpeername(SOCKET s, struct sockaddr *name, int *namelen);
46 int setsockopt(SOCKET s, int level, int optname, 51 int setsockopt(SOCKET s, int level, int optname,