diff options
| author | Richard M. Stallman | 1995-09-10 04:20:44 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-09-10 04:20:44 +0000 |
| commit | e7536cff152f9b7c2062588f3c171358162fe75f (patch) | |
| tree | 42e69700c32e868860159498f93a056b2efd7c6e /src | |
| parent | 0c565a0ad172f96db0108403f682139189b2b584 (diff) | |
| download | emacs-e7536cff152f9b7c2062588f3c171358162fe75f.tar.gz emacs-e7536cff152f9b7c2062588f3c171358162fe75f.zip | |
(main): Call tzset only if LOCALTIME_CACHE is defined;
not all Suns have this bug.
Diffstat (limited to 'src')
| -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\ | |||
| 911 | 911 | ||
| 912 | initialized = 1; | 912 | initialized = 1; |
| 913 | 913 | ||
| 914 | #if defined (sun) || defined (LOCALTIME_CACHE) | 914 | #ifdef LOCALTIME_CACHE |
| 915 | /* sun's localtime has a bug. it caches the value of the time | 915 | /* Some versions of localtime have a bug. They cache the value of the time |
| 916 | zone rather than looking it up every time. Since localtime() is | 916 | zone rather than looking it up every time. Since localtime() is |
| 917 | called to bolt the undumping time into the undumped emacs, this | 917 | called to bolt the undumping time into the undumped emacs, this |
| 918 | results in localtime ignoring the TZ environment variable. | 918 | results in localtime ignoring the TZ environment variable. |
| 919 | This flushes the new TZ value into localtime. */ | 919 | This flushes the new TZ value into localtime. */ |
| 920 | tzset (); | 920 | tzset (); |
| 921 | #endif /* defined (sun) || defined (LOCALTIME_CACHE) */ | 921 | #endif /* defined (LOCALTIME_CACHE) */ |
| 922 | 922 | ||
| 923 | /* Enter editor command loop. This never returns. */ | 923 | /* Enter editor command loop. This never returns. */ |
| 924 | Frecursive_edit (); | 924 | Frecursive_edit (); |