summaryrefslogtreecommitdiffstats
path: root/rfb/rfb.h
diff options
context:
space:
mode:
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