diff options
Diffstat (limited to 'libvncclient')
-rw-r--r-- | libvncclient/rfbproto.c | 2 | ||||
-rw-r--r-- | libvncclient/sockets.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c index fb724f5..9d180ce 100644 --- a/libvncclient/rfbproto.c +++ b/libvncclient/rfbproto.c @@ -344,6 +344,7 @@ DefaultSupportedMessagesTightVNC(rfbClient* client) SetServer2Client(client, rfbTextChat); } +#ifndef WIN32 static rfbBool IsUnixSocket(const char *name) { @@ -352,6 +353,7 @@ IsUnixSocket(const char *name) return TRUE; return FALSE; } +#endif /* * ConnectToRFBServer. diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index 5cfc743..135861e 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -30,6 +30,7 @@ #include <assert.h> #include <rfb/rfbclient.h> #ifdef WIN32 +#undef SOCKET #include <winsock2.h> #define EWOULDBLOCK WSAEWOULDBLOCK #define close closesocket |