diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-18 19:54:59 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-18 19:54:59 +0000 |
commit | f9b6583747136c435aefa85115e92ce65e500230 (patch) | |
tree | 0f04a147f4027d720646567bf759e69e1268f02b /src/backend/utils/adt/timestamp.c | |
parent | 369c9e3b6c5c041542e5e0f73fb35efba8aa062e (diff) | |
download | postgresql-f9b6583747136c435aefa85115e92ce65e500230.tar.gz postgresql-f9b6583747136c435aefa85115e92ce65e500230.zip |
Didn't compile on non-HAVE_TM_ZONE machines.
Diffstat (limited to 'src/backend/utils/adt/timestamp.c')
-rw-r--r-- | src/backend/utils/adt/timestamp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/utils/adt/timestamp.c b/src/backend/utils/adt/timestamp.c index 13ad90e0b0e..efe4a501463 100644 --- a/src/backend/utils/adt/timestamp.c +++ b/src/backend/utils/adt/timestamp.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.56 2001/10/18 17:30:15 thomas Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.57 2001/10/18 19:54:59 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -603,9 +603,11 @@ timestamp2tm(Timestamp dt, int *tzp, struct tm * tm, double *fsec, char **tzn) if (HasCTZSet) { *tzp = CTimeZone; - tm->tm_gmtoff = CTimeZone; tm->tm_isdst = 0; +#if defined(HAVE_TM_ZONE) + tm->tm_gmtoff = CTimeZone; tm->tm_zone = NULL; +#endif if (tzn != NULL) *tzn = NULL; } |