summaryrefslogtreecommitdiffstats
path: root/libvncclient/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncclient/sockets.c')
-rw-r--r--libvncclient/sockets.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c
index ff4fe48..0171a5c 100644
--- a/libvncclient/sockets.c
+++ b/libvncclient/sockets.c
@@ -37,6 +37,10 @@
#define read(sock,buf,len) recv(sock,buf,len,0)
#define write(sock,buf,len) send(sock,buf,len,0)
#define socklen_t int
+#ifdef LIBVNCSERVER_HAVE_WS2TCPIP_H
+#undef socklen_t
+#include <ws2tcpip.h>
+#endif
#else
#include <sys/socket.h>
#include <netinet/in.h>