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