aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io.c b/io.c
index 4951a09432..982e83e5cc 100644
--- a/io.c
+++ b/io.c
@@ -96,6 +96,10 @@
#include <sys/uio.h>
#endif
+#ifdef HAVE_SYS_WAIT_H
+# include <sys/wait.h> /* for WNOHANG on BSD */
+#endif
+
#if defined(__BEOS__) || defined(__HAIKU__)
# ifndef NOFILE
# define NOFILE (OPEN_MAX)