summaryrefslogtreecommitdiffstats
path: root/libvncclient/sockets.c
diff options
context:
space:
mode:
Diffstat (limited to 'libvncclient/sockets.c')
-rw-r--r--libvncclient/sockets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c
index 8ddfd9d..1019580 100644
--- a/libvncclient/sockets.c
+++ b/libvncclient/sockets.c
@@ -30,7 +30,9 @@
# define _POSIX_SOURCE
#endif
#endif
+#if LIBVNCSERVER_HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#include <assert.h>