]> code.delx.au - gnu-emacs/commitdiff
(main): Test LOCALTIME_CACHE.
authorRichard M. Stallman <rms@gnu.org>
Tue, 27 Jul 1993 08:32:33 +0000 (08:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 27 Jul 1993 08:32:33 +0000 (08:32 +0000)
src/emacs.c

index 309ba1ce2a12858abfee3346c481e9eb250fd7ca..a0a2a9b01865a9d4e1548e8c58511b482e62584d 100644 (file)
@@ -603,14 +603,14 @@ main (argc, argv, envp)
 
   initialized = 1;
 
 
   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
      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 ();
 
   /* Enter editor command loop.  This never returns.  */
   Frecursive_edit ();