summaryrefslogtreecommitdiffstats
path: root/rfb/rfb.h
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2012-05-03 15:29:22 +0200
committerChristian Beier <dontmind@freeshell.org>2012-05-03 15:29:22 +0200
commit3e0cf05e12cf7af71ea15e7c946e487a62e4972a (patch)
treec4d36e2a700618d90365f8b3f5a77f1e9e16e704 /rfb/rfb.h
parenta0cee790cff93a4076abb3850f37f40b14a47b08 (diff)
downloadlibvncserver-3e0cf05e12cf7af71ea15e7c946e487a62e4972a.zip
libvncserver-3e0cf05e12cf7af71ea15e7c946e487a62e4972a.tar.gz
LibVNCServer: Include ws2tcpip.h if it's available.
Needed for the IPv6 stuff.
Diffstat (limited to 'rfb/rfb.h')
-rw-r--r--rfb/rfb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rfb/rfb.h b/rfb/rfb.h
index 041b668..3446740 100644
--- a/rfb/rfb.h
+++ b/rfb/rfb.h
@@ -55,6 +55,10 @@ extern "C"
#ifdef __MINGW32__
#undef SOCKET
#include <winsock2.h>
+#ifdef LIBVNCSERVER_HAVE_WS2TCPIP_H
+#undef socklen_t
+#include <ws2tcpip.h>
+#endif
#endif
#ifdef LIBVNCSERVER_HAVE_LIBPTHREAD
OpenPOWER on IntegriCloud