Fix public issue 64: Check for <sys/time.h> at configure time,
since MSVC seemingly does not have it. R=sanjay git-svn-id: https://snappy.googlecode.com/svn/trunk@66 03e5f5b5-db94-4691-08a0-1a8bf15f6143
This commit is contained in:
@@ -18,7 +18,7 @@ AC_SUBST([LIBTOOL_DEPS])
|
|||||||
AC_PROG_CXX
|
AC_PROG_CXX
|
||||||
AC_LANG([C++])
|
AC_LANG([C++])
|
||||||
AC_C_BIGENDIAN
|
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,
|
# 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).
|
# which we don't need (and does not exist on Windows).
|
||||||
|
|||||||
@@ -47,7 +47,9 @@
|
|||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_TIME_H
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_WINDOWS_H
|
#ifdef HAVE_WINDOWS_H
|
||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
|||||||
Reference in New Issue
Block a user