aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jim-aio.c3
-rw-r--r--jim-eventloop.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/jim-aio.c b/jim-aio.c
index c73ecb4..ec3e99b 100644
--- a/jim-aio.c
+++ b/jim-aio.c
@@ -44,6 +44,9 @@
#include <string.h>
#include <errno.h>
#include <fcntl.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#include "jim.h"
diff --git a/jim-eventloop.c b/jim-eventloop.c
index 6744330..c581111 100644
--- a/jim-eventloop.c
+++ b/jim-eventloop.c
@@ -57,7 +57,9 @@
#define usleep(US) msleep((US) / 1000)
#endif
#else
+#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
+#endif
#ifndef HAVE_USLEEP
/* XXX: Implement this in terms of select() or nanosleep() */