Fix for when POSIX time not defined.
authorBruce Momjian
Thu, 30 Oct 1997 14:06:47 +0000 (14:06 +0000)
committerBruce Momjian
Thu, 30 Oct 1997 14:06:47 +0000 (14:06 +0000)
src/backend/utils/adt/nabstime.c

index 002b45558cd2672ac8e25b34125a335d0cc8c115..f5363a878dac393d0951325085f6bb9253b029aa 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *   $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.35 1997/10/25 05:21:10 thomas Exp $
+ *   $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.36 1997/10/30 14:06:47 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -154,6 +154,8 @@ abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char *tzn)
 #else
 #endif
 
+#ifdef USE_POSIX_TIME
+
    tm->tm_year = tx->tm_year + 1900;
    tm->tm_mon = tx->tm_mon + 1;
    tm->tm_mday = tx->tm_mday;
@@ -162,7 +164,6 @@ abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char *tzn)
    tm->tm_sec = tx->tm_sec;
    tm->tm_isdst = tx->tm_isdst;
 
-#ifdef USE_POSIX_TIME
 #ifdef HAVE_INT_TIMEZONE
    if (tzp != NULL)
        *tzp = (tm->tm_isdst ? (timezone - 3600) : timezone);