Define standard "timezone" variable, not just non-standard "_timezone"
Before, newlib declared the non-standard variables "_timezone" and
"_daylight". After this change, newlib also declares the standard
variables "timezone" and "daylight".
We can also replace the #define of "tzname" with a variable alias
(using __asm__). This should avoid problems when "tzname" is used as
an identifier in other contexts. (For example, we don't want to do
"#define timezone _timezone", because there is a "struct timezone".)
The initial motivation for this change is to help with building Skia
(see skia/src/ports/SkTime_Unix.cpp), but it should also help with
compatibility more generally -- naclports has patches to work around
this problem for various packages.
BUG=https://github.com/domokit/mojo/issues/431
BUG=https://bugs.chromium.org/p/nativeclient/issues/detail?id=3737
TEST=PNaCl toolchain trybots + https://codereview.chromium.org/1467103002/
R=mcgrathr@chromium.org
Review URL: https://codereview.chromium.org/1468153002 .
1 file changed