Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
author |
Bruno Haible <bruno@clisp.org> |
date |
Tue, 31 Dec 2002 12:57:56 +0000 |
parents |
cf248975b9d3 |
children |
a615f32b9998 |
files |
lib/ChangeLog lib/getdate.y |
diffstat |
2 files changed, 5 insertions(+), 1 deletions(-)
[+]
|
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-22 Bruno Haible <bruno@clisp.org>
+
+ * getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
+
2002-12-23 Bruno Haible <bruno@clisp.org>
* getline.h: Include <stddef.h>, for size_t.
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -908,7 +908,7 @@
pc.local_zones_seen = 0;
pc.zones_seen = 0;
-#if HAVE_TM_ZONE
+#if HAVE_STRUCT_TM_TM_ZONE
pc.local_time_zone_table[0].name = tmp->tm_zone;
pc.local_time_zone_table[0].type = tLOCAL_ZONE;
pc.local_time_zone_table[0].value = tmp->tm_isdst;