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

Commit06d88ec

Browse files
committed
Fix for when POSIX time not defined.
1 parent1017ddd commit06d88ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/utils/adt/nabstime.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.35 1997/10/25 05:21:10 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.36 1997/10/30 14:06:47 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -154,6 +154,8 @@ abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char *tzn)
154154
#else
155155
#endif
156156

157+
#ifdefUSE_POSIX_TIME
158+
157159
tm->tm_year=tx->tm_year+1900;
158160
tm->tm_mon=tx->tm_mon+1;
159161
tm->tm_mday=tx->tm_mday;
@@ -162,7 +164,6 @@ abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char *tzn)
162164
tm->tm_sec=tx->tm_sec;
163165
tm->tm_isdst=tx->tm_isdst;
164166

165-
#ifdefUSE_POSIX_TIME
166167
#ifdefHAVE_INT_TIMEZONE
167168
if (tzp!=NULL)
168169
*tzp= (tm->tm_isdst ? (timezone-3600) :timezone);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp