diff options
-rw-r--r-- | jim-aio.c | 3 | ||||
-rw-r--r-- | jim-eventloop.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -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() */ |