Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9b6583

Browse files
committed
Didn't compile on non-HAVE_TM_ZONE machines.
1 parent369c9e3 commitf9b6583

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/1817:30:15 thomas Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.57 2001/10/1819: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)

[8]ページ先頭

©2009-2025 Movatter.jp