* Only include <sys/time.h> conditionally.

This commit is contained in:
Sam Hocevar
2007-02-01 15:57:10 +00:00
committed by sam
parent e03887313c
commit 4c58925d80
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -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)
+3 -1
View File
@@ -26,8 +26,10 @@
#if defined HAVE_WINDOWS_H
# include <windows.h>
#endif
#if defined HAVE_SYS_TIME_H
# include <sys/time.h>
#endif
#include <stdio.h>
#include <sys/time.h>
#include <time.h>
#include "timer.h"
-1
View File
@@ -48,7 +48,6 @@
#if defined HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
#include <sys/time.h>
#if defined HAVE_SYS_RESOURCE_H
# include <sys/resource.h>
#endif