summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-08-12 08:30:03 +0000
committerJim Meyering <jim@meyering.net>2001-08-12 08:30:03 +0000
commit1a52475baa647fbdbaa579d5686c6fbe7aa8a998 (patch)
tree1b731ba3c12e4ec32af408c52b7c7c49c1b9da02 /m4
parenteac67711b575e62318ac03244641095eda519651 (diff)
downloadcoreutils-1a52475baa647fbdbaa579d5686c6fbe7aa8a998.tar.xz
yes/no were reversed
Diffstat (limited to 'm4')
-rw-r--r--m4/gettimeofday.m47
1 files changed, 5 insertions, 2 deletions
diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4
index 2d893b7da..21da67820 100644
--- a/m4/gettimeofday.m4
+++ b/m4/gettimeofday.m4
@@ -9,7 +9,7 @@ dnl
dnl If it does, then arrange to use gettimeofday only via the wrapper
dnl function that works around the problem.
-AC_DEFUN(AC_FUNC_GETTIMEOFDAY_CLOBBER,
+AC_DEFUN([AC_FUNC_GETTIMEOFDAY_CLOBBER],
[
AC_REQUIRE([AC_HEADER_TIME])
AC_CHECK_HEADERS(string.h stdlib.h)
@@ -52,8 +52,8 @@ main ()
exit (0);
}
],
- jm_cv_func_gettimeofday_clobber=yes,
jm_cv_func_gettimeofday_clobber=no,
+ jm_cv_func_gettimeofday_clobber=yes,
dnl When crosscompiling, assume it is broken.
jm_cv_func_gettimeofday_clobber=yes)
])
@@ -61,5 +61,8 @@ main ()
AC_LIBOBJ(gettimeofday)
AC_DEFINE_UNQUOTED(gettimeofday, rpl_gettimeofday,
[Define to rpl_gettimeofday if the replacement function should be used.])
+ jm_gtod_init_rhs='GTOD_init ()'
+ AC_DEFINE(GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, 1,
+ [Define if gettimeofday clobbers localtime's static buffer.])
fi
])