summaryrefslogtreecommitdiffstats
path: root/rfb/rfbproto.h
diff options
context:
space:
mode:
Diffstat (limited to 'rfb/rfbproto.h')
-rw-r--r--rfb/rfbproto.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/rfb/rfbproto.h b/rfb/rfbproto.h
index fe46c3e..4169fd6 100644
--- a/rfb/rfbproto.h
+++ b/rfb/rfbproto.h
@@ -65,7 +65,7 @@
#define LIBVNCSERVER_WORDS_BIGENDIAN
#define rfbBool int
#include <sys/timeb.h>
-#include <winsock.h>
+#include <winsock2.h>
#undef SOCKET
#define SOCKET int
#else
@@ -108,6 +108,10 @@ typedef int8_t rfbBool;
#define TRUE -1
#endif
+#ifdef _MSC_VER
+#include <stdint.h>
+#endif
+
typedef uint32_t rfbKeySym;
typedef uint32_t rfbPixel;