Paul Eggert <[email protected]> writes:

> This is consistent with bleeding-edge TZDB and with POSIX 'free'.
> * lib/time.in.h (tzfree) [!HAVE_TZALLOC]: Replace tzfree.
> I suspect Android and NetBSD (the major implementations) don’t
> always preserve errno, and it’s easier to replace tzfree everywhere.
> * lib/time_rz.c: Always include errno.h.
> (tzfree) [HAVE_TZALLOC]: New replacement function.
> (set_tz): Do not bother to save and restore errno,
> now that tzfree preserves errno.
> * modules/time_rz (Depends-on): Add free-posix.
> (configure.ac, Makefile.am): Always compile time_rz.c.
> ---
>  ChangeLog       | 14 ++++++++++++++
>  lib/time.in.h   |  9 ++++++++-
>  lib/time_rz.c   | 18 ++++++++++++++----
>  m4/time_rz.m4   |  5 +++--
>  modules/time_rz |  5 +----
>  5 files changed, 40 insertions(+), 11 deletions(-)

Did this cause an incorrect error message somewhere? Not saying that it
is wrong, just curious.

Collin

Reply via email to