diff --git a/configure.ac b/configure.ac index d193b0b..eb0bb0c 100644 --- a/configure.ac +++ b/configure.ac @@ -18,7 +18,7 @@ AC_SUBST([LIBTOOL_DEPS]) AC_PROG_CXX AC_LANG([C++]) AC_C_BIGENDIAN -AC_CHECK_HEADERS([stdint.h stddef.h sys/mman.h sys/resource.h windows.h byteswap.h sys/byteswap.h sys/endian.h]) +AC_CHECK_HEADERS([stdint.h stddef.h sys/mman.h sys/resource.h windows.h byteswap.h sys/byteswap.h sys/endian.h sys/time.h]) # Don't use AC_FUNC_MMAP, as it checks for mappings of already-mapped memory, # which we don't need (and does not exist on Windows). diff --git a/snappy-test.h b/snappy-test.h index 86a92fd..08b5cb7 100644 --- a/snappy-test.h +++ b/snappy-test.h @@ -47,7 +47,9 @@ #include #endif +#ifdef HAVE_SYS_TIME_H #include +#endif #ifdef HAVE_WINDOWS_H #define WIN32_LEAN_AND_MEAN