diff --git a/cmdline/portable.h b/cmdline/portable.h index 46af03a5..eaadc562 100644 --- a/cmdline/portable.h +++ b/cmdline/portable.h @@ -153,6 +153,10 @@ #include #endif +#if HAVE_SYS_WAIT_H +#include +#endif + #if HAVE_GETOPT_H #include #endif diff --git a/configure.ac b/configure.ac index a2af5a16..5fa3b6b8 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ AC_HEADER_TIME AC_CHECK_HEADERS([fcntl.h stddef.h stdint.h stdlib.h string.h limits.h]) AC_CHECK_HEADERS([unistd.h getopt.h fnmatch.h io.h inttypes.h byteswap.h]) AC_CHECK_HEADERS([pthread.h]) -AC_CHECK_HEADERS([sys/time.h sys/file.h sys/ioctl.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h]) +AC_CHECK_HEADERS([sys/time.h sys/wait.h sys/file.h sys/ioctl.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h]) AC_CHECK_HEADERS([linux/fiemap.h linux/fs.h mach/mach_time.h]) dnl Checks for typedefs, structures, and compiler characteristics.