sol_compat.h: Pull in <sys/time.h> for proto of gettimeofday (fixes warnings)
This commit is contained in:
parent
29bf7f3e03
commit
07d8e36190
2 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,7 @@ AC_PROG_LIBTOOL
|
||||||
|
|
||||||
AC_C_INLINE
|
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_HEADERS([config.h])
|
||||||
AC_CONFIG_FILES([Makefile Doxyfile umem.spec])
|
AC_CONFIG_FILES([Makefile Doxyfile umem.spec])
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_TIME_H
|
||||||
|
#include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# define THR_RETURN DWORD
|
# define THR_RETURN DWORD
|
||||||
# define THR_API WINAPI
|
# define THR_API WINAPI
|
||||||
|
|
Loading…
Reference in a new issue