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

(main): Call tzset only if LOCALTIME_CACHE is defined;

not all Suns have this bug.
parent 0c565a0a
...@@ -911,14 +911,14 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\ ...@@ -911,14 +911,14 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\
initialized = 1; initialized = 1;
#if defined (sun) || defined (LOCALTIME_CACHE) #ifdef LOCALTIME_CACHE
/* sun's localtime has a bug. it caches the value of the time /* Some versions of localtime have a bug. They cache the value of the time
zone rather than looking it up every time. Since localtime() is zone rather than looking it up every time. Since localtime() is
called to bolt the undumping time into the undumped emacs, this called to bolt the undumping time into the undumped emacs, this
results in localtime ignoring the TZ environment variable. results in localtime ignoring the TZ environment variable.
This flushes the new TZ value into localtime. */ This flushes the new TZ value into localtime. */
tzset (); tzset ();
#endif /* defined (sun) || defined (LOCALTIME_CACHE) */ #endif /* defined (LOCALTIME_CACHE) */
/* Enter editor command loop. This never returns. */ /* Enter editor command loop. This never returns. */
Frecursive_edit (); Frecursive_edit ();
......
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