diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-09-10 04:20:44 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-09-10 04:20:44 +0000 |
commit | f545c1618f12a35b527c3157a52f53721e7a659c (patch) | |
tree | 5221346079c38a324e8ae36c88ccb54c1fa1b2c6 /src/emacs.c | |
parent | d8eaa1412709499dd7801e1701dc484e8dfd1cd8 (diff) | |
download | emacs-f545c1618f12a35b527c3157a52f53721e7a659c.tar.gz |
(main): Call tzset only if LOCALTIME_CACHE is defined;
not all Suns have this bug.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emacs.c b/src/emacs.c index 40ecc3d15bd..5f4ad8d3167 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -911,14 +911,14 @@ Usage: %s [-t term] [--terminal term] [-nw] [--no-windows] [--batch]\n\ initialized = 1; -#if defined (sun) || defined (LOCALTIME_CACHE) - /* sun's localtime has a bug. it caches the value of the time +#ifdef LOCALTIME_CACHE + /* 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 called to bolt the undumping time into the undumped emacs, this results in localtime ignoring the TZ environment variable. This flushes the new TZ value into localtime. */ tzset (); -#endif /* defined (sun) || defined (LOCALTIME_CACHE) */ +#endif /* defined (LOCALTIME_CACHE) */ /* Enter editor command loop. This never returns. */ Frecursive_edit (); |