From 7d6f37b8c0309e9f0f10f62dcef48e12eb3ffd75 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Fri, 30 Apr 2004 04:18:28 +0000
Subject: [PATCH] Enable use of our own timezone library for Win32.

---
 configure                  | 7 ++++++-
 configure.in               | 6 ++++--
 src/include/pg_config.h.in | 3 +++
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/configure b/configure
index d2c60e6366c..00408f9326a 100755
--- a/configure
+++ b/configure
@@ -12012,7 +12012,12 @@ LIBOBJS="$LIBOBJS copydir.$ac_objext"
 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
 LIBOBJS="$LIBOBJS open.$ac_objext"
 LIBOBJS="$LIBOBJS pipe.$ac_objext"
-LIBOBJS="$LIBOBJS rand.$ac_objext" ;;
+LIBOBJS="$LIBOBJS rand.$ac_objext"
+
+cat >>confdefs.h <<\_ACEOF
+#define PGTZ 1
+_ACEOF
+ ;;
 esac
 
 # Win32 can't to rename or unlink on an open file
diff --git a/configure.in b/configure.in
index 8249ac16965..fe540588c68 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.339 2004/04/27 20:09:27 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.340 2004/04/30 04:18:28 momjian Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -893,7 +893,9 @@ AC_LIBOBJ(copydir)
 AC_LIBOBJ(gettimeofday)
 AC_LIBOBJ(open)
 AC_LIBOBJ(pipe)
-AC_LIBOBJ(rand) ;;
+AC_LIBOBJ(rand)
+AC_DEFINE(PGTZ, 1,
+	[Define to 1 to use our own timezone library]) ;;
 esac
 
 # Win32 can't to rename or unlink on an open file
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in
index c02f94c218f..974011e0a77 100644
--- a/src/include/pg_config.h.in
+++ b/src/include/pg_config.h.in
@@ -575,6 +575,9 @@
 /* Define to the version of this package. */
 #undef PACKAGE_VERSION
 
+/* Define to 1 to use our own timezone library */
+#undef PGTZ
+
 /* Define to the name of the PostgreSQL service principal in Kerberos.
    (--with-krb-srvnam=NAME) */
 #undef PG_KRB_SRVNAM
-- 
GitLab