summaryrefslogtreecommitdiff
path: root/modules/time
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-07-23 17:44:19 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-07-23 18:31:07 -0700
commit4bc76593d509827588081e32ebd75a5e34d1c374 (patch)
tree6f606f5568ee824f46e134058fa0fcd8b3c891b3 /modules/time
parente187c794c938b93413dbb30cb4e1eb883884ecc2 (diff)
downloadgnulib-4bc76593d509827588081e32ebd75a5e34d1c374.tar.gz
time_rz: new module
* MODULES.html.sh: Add time_rz. * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files. * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z): New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@. * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New var HAVE_TIMEZONE_T (default 0). * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): New var GNULIB_TIME_RZ (default 0). * modules/time (time.h): Substitute the new vars.
Diffstat (limited to 'modules/time')
-rw-r--r--modules/time2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/time b/modules/time
index 55edc2572f..d12add0911 100644
--- a/modules/time
+++ b/modules/time
@@ -36,10 +36,12 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
-e 's/@''GNULIB_STRPTIME''@/$(GNULIB_STRPTIME)/g' \
-e 's/@''GNULIB_TIMEGM''@/$(GNULIB_TIMEGM)/g' \
-e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \
+ -e 's/@''GNULIB_TIME_RZ''@/$(GNULIB_TIME_RZ)/g' \
-e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
-e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
-e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
-e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
+ -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \
-e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \
-e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \
-e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \