Skip to content

Commit 06d88ec

Browse files
committed
Fix for when POSIX time not defined.
1 parent 1017ddd commit 06d88ec

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+
#ifdef USE_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-
#ifdef USE_POSIX_TIME
166167
#ifdef HAVE_INT_TIMEZONE
167168
if (tzp != NULL)
168169
*tzp = (tm->tm_isdst ? (timezone - 3600) : timezone);

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