Skip to content

Commit f9b6583

Browse files
committed
Didn't compile on non-HAVE_TM_ZONE machines.
1 parent 369c9e3 commit f9b6583

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/backend/utils/adt/timestamp.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.56 2001/10/18 17:30:15 thomas Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.57 2001/10/18 19:54:59 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -603,9 +603,11 @@ timestamp2tm(Timestamp dt, int *tzp, struct tm * tm, double *fsec, char **tzn)
603603
if (HasCTZSet)
604604
{
605605
*tzp = CTimeZone;
606-
tm->tm_gmtoff = CTimeZone;
607606
tm->tm_isdst = 0;
607+
#if defined(HAVE_TM_ZONE)
608+
tm->tm_gmtoff = CTimeZone;
608609
tm->tm_zone = NULL;
610+
#endif
609611
if (tzn != NULL)
610612
*tzn = NULL;
611613
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy