From 244c4a180fafcaab686bf912bd52a5e69bc9946b Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Mon, 2 Feb 1998 01:28:12 +0000
Subject: [PATCH] No datedebug printing of date debug is not defined.

---
 src/backend/utils/adt/nabstime.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/backend/utils/adt/nabstime.c b/src/backend/utils/adt/nabstime.c
index ad8fd22d0d1..7c4d1364a76 100644
--- a/src/backend/utils/adt/nabstime.c
+++ b/src/backend/utils/adt/nabstime.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.40 1998/02/01 19:43:54 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/utils/adt/nabstime.c,v 1.41 1998/02/02 01:28:12 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -140,7 +140,8 @@ abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char *tzn)
 	};
 #endif
 
-#if defined(DATEDEBUG) && defined(HAVE_INT_TIMEZONE)
+#if defined(DATEDEBUG)
+#if defined(HAVE_INT_TIMEZONE)
 	printf("datetime2tm- (localtime) %d.%02d.%02d %02d:%02d:%02d %s %s dst=%d\n",
 		   tx->tm_year, tx->tm_mon, tx->tm_mday, tx->tm_hour, tx->tm_min, tx->tm_sec,
 		   tzname[0], tzname[1], tx->tm_isdst);
@@ -149,6 +150,7 @@ abstime2tm(AbsoluteTime time, int *tzp, struct tm * tm, char *tzn)
 		   tx->tm_year, tx->tm_mon, tx->tm_mday, tx->tm_hour, tx->tm_min, tx->tm_sec,
 		   tx->tm_zone, tx->tm_isdst);
 #endif
+#endif
 
 #ifdef USE_POSIX_TIME
 
-- 
GitLab