From 07d8e36190c27be36b1240537b3af8e7aedb1ff4 Mon Sep 17 00:00:00 2001 From: Richard Dawe Date: Sun, 3 Sep 2006 12:50:46 +0000 Subject: [PATCH] sol_compat.h: Pull in for proto of gettimeofday (fixes warnings) --- configure.ac | 2 +- sol_compat.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a491850..474253f 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ AC_PROG_LIBTOOL AC_C_INLINE -AC_CHECK_HEADERS([sys/mman.h sys/sysmacros.h]) +AC_CHECK_HEADERS([sys/mman.h sys/sysmacros.h sys/time.h]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile Doxyfile umem.spec]) diff --git a/sol_compat.h b/sol_compat.h index f419fb6..6b670ce 100644 --- a/sol_compat.h +++ b/sol_compat.h @@ -11,6 +11,10 @@ #include #include +#ifdef HAVE_SYS_TIME_H +#include +#endif + #ifdef _WIN32 # define THR_RETURN DWORD # define THR_API WINAPI