From 012baa84b111f2a7b12fd4f0f03f1aff8f0a9616 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 16 Apr 2017 23:12:50 +0200 Subject: [PATCH] Also include where available --- configure.ac | 2 +- src/zzuf.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a0c6a9a..600b8f6 100644 --- a/configure.ac +++ b/configure.ac @@ -70,7 +70,7 @@ AC_CHECK_HEADERS(unistd.h inttypes.h stdint.h endian.h libc.h) AC_CHECK_HEADERS(windows.h winsock2.h process.h) AC_CHECK_HEADERS(alloca.h malloc.h dlfcn.h regex.h sys/cdefs.h sys/socket.h) AC_CHECK_HEADERS(netinet/in.h arpa/inet.h sys/uio.h aio.h) -AC_CHECK_HEADERS(sys/mman.h sys/wait.h sys/resource.h sys/time.h) +AC_CHECK_HEADERS(sys/mman.h sys/wait.h sys/resource.h sys/select.h sys/time.h) AC_CHECK_HEADERS(io.h mach/task.h) AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe) diff --git a/src/zzuf.c b/src/zzuf.c index 1db2db3..f918708 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -52,6 +52,9 @@ #if defined HAVE_ALLOCA_H # include #endif +#if defined HAVE_SYS_SELECT_H +# include +#endif #if defined HAVE_SYS_TIME_H # include #endif