From: Jim Meyering Date: Sat, 13 Sep 2003 10:32:07 +0000 (+0000) Subject: (AC_FUNC_GETTIMEOFDAY_CLOBBER): X-Git-Tag: v5.1.0~647 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=278a8c86afa210c649b9f09536ddfd96cf3f33e2;p=thirdparty%2Fcoreutils.git (AC_FUNC_GETTIMEOFDAY_CLOBBER): Include , unconditionally. --- diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4 index e7a5a6db6e..3875972d26 100644 --- a/m4/gettimeofday.m4 +++ b/m4/gettimeofday.m4 @@ -1,4 +1,4 @@ -#serial 4 +#serial 5 dnl From Jim Meyering. dnl @@ -12,14 +12,11 @@ dnl the wrapper functions that work around the problem. AC_DEFUN([AC_FUNC_GETTIMEOFDAY_CLOBBER], [ AC_REQUIRE([AC_HEADER_TIME]) - AC_CHECK_HEADERS_ONCE(stdlib.h string.h) AC_CACHE_CHECK([whether gettimeofday clobbers localtime buffer], jm_cv_func_gettimeofday_clobber, [AC_TRY_RUN([ #include -#if HAVE_STRING_H -# include -#endif +#include #if TIME_WITH_SYS_TIME # include @@ -32,9 +29,7 @@ AC_DEFUN([AC_FUNC_GETTIMEOFDAY_CLOBBER], # endif #endif -#if HAVE_STDLIB_H -# include -#endif +#include int main ()