diff options
author | richdawe <richdawe@1665872d-e22b-0410-9e5d-a57ad4215e6d> | 2006-09-03 12:50:46 +0000 |
---|---|---|
committer | richdawe <richdawe@1665872d-e22b-0410-9e5d-a57ad4215e6d> | 2006-09-03 12:50:46 +0000 |
commit | cebadcd9b0b9e7f515046aadbbf3003b4c3b8a97 (patch) | |
tree | e64dad827990da2b2069e741e973e3e32201c4fd | |
parent | e633500627c3263522e6322fe916e6556c4be32f (diff) | |
download | portableumem-cebadcd9b0b9e7f515046aadbbf3003b4c3b8a97.tar.gz |
sol_compat.h: Pull in <sys/time.h> for proto of gettimeofday (fixes warnings)
git-svn-id: https://labs.omniti.com/portableumem/trunk@25 1665872d-e22b-0410-9e5d-a57ad4215e6d
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | sol_compat.h | 4 |
2 files changed, 5 insertions, 1 deletions
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 <stdint.h> #include <pthread.h> +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#endif + #ifdef _WIN32 # define THR_RETURN DWORD # define THR_API WINAPI |