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 0b9c9c1b229fe30243266dbad4d00cca572b4108..d059c948c8cc731ee0a071e07e8895d51e1f1b74 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 e6e7c1a158adf40cdd2d1dc62a419660de568bc4..1b5148b410f4778aaf6484edd01176cbb9bc693d 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;