diff options
-rw-r--r-- | acinclude.m4 | 3 | ||||
-rw-r--r-- | tests/tests.c | 9 |
2 files changed, 4 insertions, 8 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index b8462ea59..32f235214 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -40,7 +40,6 @@ AC_DEFUN([MPFR_CONFIGS], AC_REQUIRE([AC_OBJEXT]) AC_REQUIRE([MPFR_CHECK_LIBM]) AC_REQUIRE([MPFR_CHECK_LIBQUADMATH]) -AC_REQUIRE([AC_HEADER_TIME]) AC_REQUIRE([AC_CANONICAL_HOST]) dnl Features for the MPFR shared cache. This needs to be done @@ -119,7 +118,7 @@ AC_CHECK_HEADER([stdarg.h],[AC_DEFINE([HAVE_STDARG],1,[Define if stdarg])], AC_MSG_ERROR([stdarg.h or varargs.h not found]))]) dnl sys/fpu.h - MIPS specific -AC_CHECK_HEADERS([sys/time.h sys/fpu.h]) +AC_CHECK_HEADERS([sys/fpu.h]) dnl Android has a <locale.h>, but not the following members. AC_CHECK_MEMBERS([struct lconv.decimal_point, struct lconv.thousands_sep],,, diff --git a/tests/tests.c b/tests/tests.c index 49953aba4..45d34568b 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -44,13 +44,10 @@ https://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., # include <fenv.h> #endif -#ifdef TIME_WITH_SYS_TIME -# include <sys/time.h> /* for struct timeval */ -# include <time.h> -#elif defined HAVE_SYS_TIME_H -# include <sys/time.h> +#ifdef HAVE_GETTIMEOFDAY +# include <sys/time.h> #else -# include <time.h> +# include <time.h> #endif /* <sys/fpu.h> is needed to have union fpc_csr defined under IRIX64 |