summaryrefslogtreecommitdiffstats
path: root/libvncclient
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2010-07-11 15:31:07 +0200
committerJohannes Schindelin <johannes.schindelin@gmx.de>2010-07-14 17:05:09 +0200
commit79f0f1374cabb3d252e9eda0d13fc21857991b2e (patch)
tree4bcecda160444de837581f42a8da23da204350bf /libvncclient
parent68e7696a27b31034876f594f242a229ff2b74fa4 (diff)
downloadlibtdevnc-79f0f1374cabb3d252e9eda0d13fc21857991b2e.tar.gz
libtdevnc-79f0f1374cabb3d252e9eda0d13fc21857991b2e.zip
Fix MinGW32 checking for IPv6.
Signed-off-by: Christian Beier <dontmind@freeshell.org> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'libvncclient')
-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>