changeset 4303:fd9865b5a41e

(main): Test LOCALTIME_CACHE.
author Richard M. Stallman <rms@gnu.org>
date Tue, 27 Jul 1993 08:32:33 +0000
parents 33090cb5f403
children b5014da888a8
files src/emacs.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Tue Jul 27 08:32:05 1993 +0000
+++ b/src/emacs.c	Tue Jul 27 08:32:33 1993 +0000
@@ -603,14 +603,14 @@
 
   initialized = 1;
 
-#ifdef sun
-  /* sun's localtime() has a bug.  it caches the value of the time
+#if defined (sun) || defined (LOCALTIME_CACHE)
+  /* sun's localtime has a bug.  it caches 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 /* sun */
+     results in localtime ignoring the TZ environment variable.
+     This flushes the new TZ value into localtime. */
+  tzset ();
+#endif /* defined (sun) || defined (LOCALTIME_CACHE) */
 
   /* Enter editor command loop.  This never returns.  */
   Frecursive_edit ();