From 79f0f1374cabb3d252e9eda0d13fc21857991b2e Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Sun, 11 Jul 2010 15:31:07 +0200 Subject: Fix MinGW32 checking for IPv6. Signed-off-by: Christian Beier Signed-off-by: Johannes Schindelin --- libvncclient/sockets.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvncclient') 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 +#endif #else #include #include -- cgit v1.2.1