summaryrefslogtreecommitdiffstats
path: root/libvncclient/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncclient/sockets.c')
-rw-r--r--libvncclient/sockets.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c
index 7ddf1b2..e50ef0e 100644
--- a/libvncclient/sockets.c
+++ b/libvncclient/sockets.c
@@ -38,7 +38,9 @@
#ifdef WIN32
#undef SOCKET
#include <winsock2.h>
+#ifdef MINGW32
#define EWOULDBLOCK WSAEWOULDBLOCK
+#endif
#define close closesocket
#define read(sock,buf,len) recv(sock,buf,len,0)
#define write(sock,buf,len) send(sock,buf,len,0)
@@ -109,7 +111,7 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)
diff.tv_sec--;
diff.tv_usec+=1000000;
}
-#ifndef __MINGW32__
+#ifndef WIN32
sleep (diff.tv_sec);
usleep (diff.tv_usec);
#else
OpenPOWER on IntegriCloud