summaryrefslogtreecommitdiff
path: root/m4/gettimeofday.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-06-09 20:52:15 +0000
committerJim Meyering <jim@meyering.net>2003-06-09 20:52:15 +0000
commit4a6f13aa2f8d86fc9607703bc026389b100759a5 (patch)
tree2624ee14c596b79aed9573edb6ddcd29cd64422f /m4/gettimeofday.m4
parent954603b708522891dfa78a92fa7bccda709f53b7 (diff)
downloadcoreutils-4a6f13aa2f8d86fc9607703bc026389b100759a5.tar.xz
(AC_FUNC_GETTIMEOFDAY_CLOBBER): Also define gmtime.
Diffstat (limited to 'm4/gettimeofday.m4')
-rw-r--r--m4/gettimeofday.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4
index 19ed0bfa6..2ac299257 100644
--- a/m4/gettimeofday.m4
+++ b/m4/gettimeofday.m4
@@ -58,9 +58,14 @@ main ()
jm_cv_func_gettimeofday_clobber=yes)
])
if test $jm_cv_func_gettimeofday_clobber = yes; then
+ # Caution: the following few lines should be the same
+ # as those in gettimeofday.m4.
AC_LIBOBJ(gettimeofday)
+ AC_DEFINE(gmtime, rpl_gmtime,
+ [Define to rpl_gmtime if the replacement function should be used.])
AC_DEFINE(localtime, rpl_localtime,
[Define to rpl_localtime if the replacement function should be used.])
+
AC_DEFINE(gettimeofday, rpl_gettimeofday,
[Define to rpl_gettimeofday if the replacement function should be used.])
AC_DEFINE(GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, 1,