From 3ceea0946b97629ecd30a5080e6ca770207fb80f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 9 Jun 2003 20:57:03 +0000 Subject: [PATCH] . --- aclocal.m4 | 10 ++++++++++ config.hin | 3 +++ 2 files changed, 13 insertions(+) diff --git a/aclocal.m4 b/aclocal.m4 index 5bf1db2893..68cc725b10 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -3561,9 +3561,14 @@ main () [Define to 1 if you have run the test for working tzset.]) if test $gl_cv_func_tzset_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(tzset, rpl_tzset, [Define to rpl_tzset if the wrapper function should be used.]) AC_DEFINE(TZSET_CLOBBERS_LOCALTIME_BUFFER, 1, @@ -3913,9 +3918,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, diff --git a/config.hin b/config.hin index f1d1a02340..0216710a48 100644 --- a/config.hin +++ b/config.hin @@ -1372,6 +1372,9 @@ /* Define to `int' if doesn't define. */ #undef gid_t +/* Define to rpl_gmtime if the replacement function should be used. */ +#undef gmtime + /* Define as `__inline' if that's what the C compiler calls it, or to nothing if it is not supported. */ #undef inline -- 2.47.2