From d06a586e84906d72abd56277dd35069b744d5529 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 2 Jan 2015 23:00:19 +0100 Subject: [PATCH] Adds sys/wait.h in the list of include used. --- cmdline/portable.h | 4 ++++ configure.ac | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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.