Skip to content

Commit 049af7d

Browse files
committed
MulticastVNC: include ws2tcpip in the source, not the header
1 parent 2e98a96 commit 049af7d

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

libvncclient/rfbproto.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
#undef SOCKET
4343
#undef socklen_t
4444
#endif
45+
#ifdef LIBVNCSERVER_HAVE_WS2TCPIP_H
46+
#undef socklen_t
47+
#include <ws2tcpip.h>
48+
#endif
4549
#ifdef LIBVNCSERVER_HAVE_LIBZ
4650
#include <zlib.h>
4751
#ifdef __CHECKER__

rfb/rfbclient.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@
5252
#endif
5353
#include <rfb/rfbproto.h>
5454
#include <rfb/keysym.h>
55-
#ifdef __MINGW32__
56-
#undef SOCKET
57-
#undef socklen_t
58-
#include <ws2tcpip.h>
59-
#endif
6055

6156
#ifdef LIBVNCSERVER_HAVE_SASL
6257
#include <sasl/sasl.h>

0 commit comments

Comments
 (0)