]> Savannah Git Hosting - gnulib.git/commit
nstrftime: improve fix for NetBSD link errors
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jun 2024 23:16:29 +0000 (16:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Jun 2024 23:18:06 +0000 (16:18 -0700)
commit6c0315452bd677092aa2d85dc422a5a78e1903be
tree74d224941e39aae3cb2feebccdf487fabf76c5a1
parent4adb00db06f8b06a77230fab99cac71da3aff606
nstrftime: improve fix for NetBSD link errors

This makes the NetBSD code thread-safe and presumably faster.
* lib/strftime.c (HAVE_NATIVE_TIME_Z): New macro.
(__strftime_internal): If HAVE_NATIVE_TIME_Z, use strftime_lz
or strftime_z instead of setting and reverting TZ.
* lib/time-internal.c: Remove, reverting recent change.
* lib/time_rz.c, modules/time_rz: Also revert recent changes,
since the relevant functions can now remain private to time_rz.c.
* m4/c-nstrftime.m4 (gl_C_GNU_STRFTIME): Check for strftime_lz.
* m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Check for strftime_z.
ChangeLog
lib/strftime.c
lib/time-internal.c [deleted file]
lib/time_rz.c
m4/c-nstrftime.m4
m4/nstrftime.m4
modules/time_rz