[tz] [PROPOSED PATCH] port 'environ' decl to Solaris 10

Random832 random832 at fastmail.com
Mon Sep 5 00:35:45 UTC 2016

On Sun, Sep 4, 2016, at 20:27, Paul Eggert wrote:
> POSIX says apps must declare 'environ' themselves.  Although this
> is not necessary on GNU/Linux with _GNU_SOURCE defined, it is
> needed with stricter environments like Solaris 10.
> * date.c, zdump.c (environ): Declare even if HAVE_POSIX_DECLS.

1. Why exactly does this code do this instead of using setenv/putenv?
2. Why mess with the environment at all instead of conditionally calling
gmtime rather than localtime?

More information about the tz mailing list