Test HAVE_STRUCT_TM_TM_ZONE, not HAVE_TM_ZONE.
authorBruno Haible <bruno@clisp.org>
Tue, 31 Dec 2002 12:57:56 +0000 (12:57 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 31 Dec 2002 12:57:56 +0000 (12:57 +0000)
lib/ChangeLog
lib/getdate.y

index 0b9c9c1..d059c94 100644 (file)
@@ -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.
index e6e7c1a..1b5148b 100644 (file)
@@ -908,7 +908,7 @@ get_date (const char *p, const time_t *now)
   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;