From 4c58925d8019e0bac77cff5190f762f4e8e9e8ac Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Thu, 1 Feb 2007 15:57:10 +0000 Subject: [PATCH] * Only include conditionally. --- configure.ac | 2 +- src/timer.c | 4 +++- src/zzuf.c | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 3a78310..ec643e8 100644 --- a/configure.ac +++ b/configure.ac @@ -27,7 +27,7 @@ esac AC_SUBST(WINSOCK2_LIBS) AC_SUBST(DLL_LDFLAGS) -AC_CHECK_HEADERS(windows.h winsock2.h io.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h) +AC_CHECK_HEADERS(windows.h winsock2.h io.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h) AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe) AC_CHECK_FUNCS(open64 lseek64 mmap64 fopen64 fseeko _IO_getc getline getdelim __getdelim fgetln __srefill map_fd memalign posix_memalign aio_read accept socket readv pread recv recvfrom recvmsg mmap valloc sigaction) diff --git a/src/timer.c b/src/timer.c index 20b8775..8d42935 100644 --- a/src/timer.c +++ b/src/timer.c @@ -26,8 +26,10 @@ #if defined HAVE_WINDOWS_H # include #endif +#if defined HAVE_SYS_TIME_H +# include +#endif #include -#include #include #include "timer.h" diff --git a/src/zzuf.c b/src/zzuf.c index 4df97ea..9a1d01a 100644 --- a/src/zzuf.c +++ b/src/zzuf.c @@ -48,7 +48,6 @@ #if defined HAVE_SYS_WAIT_H # include #endif -#include #if defined HAVE_SYS_RESOURCE_H # include #endif