diff options
-rw-r--r-- | aclocal.m4 | 10 | ||||
-rw-r--r-- | config.hin | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index 5bf1db289..68cc725b1 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 f1d1a0234..0216710a4 100644 --- a/config.hin +++ b/config.hin @@ -1372,6 +1372,9 @@ /* Define to `int' if <sys/types.h> 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 |