aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-06 17:43:12 +0000
committerRichard M. Stallman1993-06-06 17:43:12 +0000
commita7971c39a9656d56959ec88b4008f6d66230cfe4 (patch)
tree4b55844f93b0390d57832cd85980da77eeb73495 /src
parent4c0744832b48b0a4654b7d27b95f7358962f354c (diff)
downloademacs-a7971c39a9656d56959ec88b4008f6d66230cfe4.tar.gz
emacs-a7971c39a9656d56959ec88b4008f6d66230cfe4.zip
(Fcurrent_time_zone): Add alternative for !HAVE_TM_ZONE.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 69a045b8341..e8b2a08c79f 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -656,7 +656,12 @@ the data it can't find.")
656#ifdef HAVE_TM_ZONE 656#ifdef HAVE_TM_ZONE
657 if (t->tm_zone) 657 if (t->tm_zone)
658 s = t->tm_zone; 658 s = t->tm_zone;
659#else /* not HAVE_TM_ZONE */
660#ifdef HAVE_TZNAME
661 if (t->tm_isdst == 0 || t->tm_isdst == 1)
662 s = tzname[t->tm_isdst];
659#endif 663#endif
664#endif /* not HAVE_TM_ZONE */
660 if (!s) 665 if (!s)
661 { 666 {
662 /* No local time zone name is available; use "+-NNNN" instead. */ 667 /* No local time zone name is available; use "+-NNNN" instead. */