@@ -100,7 +100,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **t
100
100
int64 dDate ,
101
101
date0 ;
102
102
int64 time ;
103
- #if defined(HAVE_TM_ZONE ) || defined(HAVE_INT_TIMEZONE )
103
+ #if defined(HAVE_STRUCT_TM_TM_ZONE ) || defined(HAVE_INT_TIMEZONE )
104
104
time_t utime ;
105
105
struct tm * tx ;
106
106
#endif
@@ -134,7 +134,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **t
134
134
*/
135
135
if (IS_VALID_UTIME (tm -> tm_year , tm -> tm_mon , tm -> tm_mday ))
136
136
{
137
- #if defined(HAVE_TM_ZONE ) || defined(HAVE_INT_TIMEZONE )
137
+ #if defined(HAVE_STRUCT_TM_TM_ZONE ) || defined(HAVE_INT_TIMEZONE )
138
138
139
139
utime = dt / USECS_PER_SEC +
140
140
((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
147
147
tm -> tm_min = tx -> tm_min ;
148
148
tm -> tm_isdst = tx -> tm_isdst ;
149
149
150
- #if defined(HAVE_TM_ZONE )
150
+ #if defined(HAVE_STRUCT_TM_TM_ZONE )
151
151
tm -> tm_gmtoff = tx -> tm_gmtoff ;
152
152
tm -> tm_zone = tx -> tm_zone ;
153
153
@@ -159,7 +159,7 @@ timestamp2tm(timestamp dt, int *tzp, struct tm *tm, fsec_t *fsec, const char **t
159
159
if (tzn != NULL )
160
160
* tzn = TZNAME_GLOBAL [(tm -> tm_isdst > 0 )];
161
161
#endif
162
- #else /* not (HAVE_TM_ZONE || HAVE_INT_TIMEZONE) */
162
+ #else /* not (HAVE_STRUCT_TM_TM_ZONE || HAVE_INT_TIMEZONE) */
163
163
* tzp = 0 ;
164
164
/* Mark this as *no* time zone available */
165
165
tm -> tm_isdst = -1 ;
0 commit comments