sol_compat.h: Pull in <sys/time.h> for proto of gettimeofday (fixes warnings)

This commit is contained in:
Richard Dawe 2006-09-03 12:50:46 +00:00
parent 29bf7f3e03
commit 07d8e36190
2 changed files with 5 additions and 1 deletions

View file

@ -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])

View file

@ -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