Commit a7971c39 authored by Richard M. Stallman's avatar Richard M. Stallman

(Fcurrent_time_zone): Add alternative for !HAVE_TM_ZONE.

parent 4c074483
......@@ -656,7 +656,12 @@ the data it can't find.")
#ifdef HAVE_TM_ZONE
if (t->tm_zone)
s = t->tm_zone;
#else /* not HAVE_TM_ZONE */
#ifdef HAVE_TZNAME
if (t->tm_isdst == 0 || t->tm_isdst == 1)
s = tzname[t->tm_isdst];
#endif
#endif /* not HAVE_TM_ZONE */
if (!s)
{
/* No local time zone name is available; use "+-NNNN" instead. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment