diff options
Diffstat (limited to 'src/posix-io.c')
-rw-r--r-- | src/posix-io.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/posix-io.c b/src/posix-io.c index 5c3def03..762051e7 100644 --- a/src/posix-io.c +++ b/src/posix-io.c @@ -28,8 +28,12 @@ #include <errno.h> #include <signal.h> #include <fcntl.h> -#include <unistd.h> -#include <sys/time.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#endif #include <sys/types.h> #include <sys/wait.h> #ifdef HAVE_SYS_UIO_H @@ -37,7 +41,6 @@ #endif #include <ctype.h> #include <sys/resource.h> -#include <unistd.h> #include "util.h" #include "priv-io.h" |