diff src/emacs.c @ 13016:6ad7dc19b526

(main): Call tzset only if LOCALTIME_CACHE is defined; not all Suns have this bug.
author Richard M. Stallman <rms@gnu.org>
date Sun, 10 Sep 1995 04:20:44 +0000
parents ec9ae189a275
children 0d3722d074a7
line wrap: on
line diff
--- a/src/emacs.c	Sun Sep 10 04:18:58 1995 +0000
+++ b/src/emacs.c	Sun Sep 10 04:20:44 1995 +0000
@@ -911,14 +911,14 @@
 
   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 ();