summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-13 10:32:07 +0000
committerJim Meyering <jim@meyering.net>2003-09-13 10:32:07 +0000
commit278a8c86afa210c649b9f09536ddfd96cf3f33e2 (patch)
tree6b19ef9cd1c0441f3186121395bbc787c01a26f4 /m4
parentf14e3a31e56a6d0eea0360b8d365af585e0e3101 (diff)
downloadcoreutils-278a8c86afa210c649b9f09536ddfd96cf3f33e2.tar.xz
(AC_FUNC_GETTIMEOFDAY_CLOBBER):
Include <string.h>, <stdlib.h> unconditionally.
Diffstat (limited to 'm4')
-rw-r--r--m4/gettimeofday.m411
1 files changed, 3 insertions, 8 deletions
diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4
index e7a5a6db6..3875972d2 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 <stdio.h>
-#if HAVE_STRING_H
-# include <string.h>
-#endif
+#include <string.h>
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
@@ -32,9 +29,7 @@ AC_DEFUN([AC_FUNC_GETTIMEOFDAY_CLOBBER],
# endif
#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
+#include <stdlib.h>
int
main ()