@@ -100,7 +100,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **t
100100int64 dDate ,
101101date0 ;
102102int64 time ;
103- #if defined(HAVE_TM_ZONE )|| defined(HAVE_INT_TIMEZONE )
103+ #if defined(HAVE_STRUCT_TM_TM_ZONE )|| defined(HAVE_INT_TIMEZONE )
104104time_t utime ;
105105struct tm * tx ;
106106#endif
@@ -134,7 +134,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **t
134134 */
135135if (IS_VALID_UTIME (tm -> tm_year ,tm -> tm_mon ,tm -> tm_mday ))
136136{
137- #if defined(HAVE_TM_ZONE )|| defined(HAVE_INT_TIMEZONE )
137+ #if defined(HAVE_STRUCT_TM_TM_ZONE )|| defined(HAVE_INT_TIMEZONE )
138138
139139utime = dt /USECS_PER_SEC +
140140((date0 - date2j (1970 ,1 ,1 ))* INT64CONST (86400 ));
@@ -147,7 +147,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **t
147147tm -> tm_min = tx -> tm_min ;
148148tm -> tm_isdst = tx -> tm_isdst ;
149149
150- #if defined(HAVE_TM_ZONE )
150+ #if defined(HAVE_STRUCT_TM_TM_ZONE )
151151tm -> tm_gmtoff = tx -> tm_gmtoff ;
152152tm -> tm_zone = tx -> tm_zone ;
153153
@@ -159,7 +159,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **t
159159if (tzn != NULL )
160160* tzn = TZNAME_GLOBAL [(tm -> tm_isdst > 0 )];
161161#endif
162- #else /* not (HAVE_TM_ZONE || HAVE_INT_TIMEZONE) */
162+ #else /* not (HAVE_STRUCT_TM_TM_ZONE || HAVE_INT_TIMEZONE) */
163163* tzp = 0 ;
164164/* Mark this as *no* time zone available */
165165tm -> tm_isdst = -1 ;