summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvncserver/websockets.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libvncserver/websockets.c b/libvncserver/websockets.c
index b8de5cd..f56b002 100644
--- a/libvncserver/websockets.c
+++ b/libvncserver/websockets.c
@@ -41,7 +41,12 @@
#include <sys/endian.h>
#endif
+#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
#include <string.h>
+#include <unistd.h>
#include "rfb/rfbconfig.h"
#include "rfbssl.h"
#include "rfbcrypto.h"