From 64c82a5016e11049662e3270925e1eff54f60aa1 Mon Sep 17 00:00:00 2001
From: "Marc G. Fournier" <scrappy@hub.org>
Date: Tue, 25 Mar 1997 20:02:42 +0000
Subject: [PATCH] Add checs for float.h

Remove 'unused variable' from dt.c
---
 src/backend/utils/adt/dt.c | 3 +--
 src/configure              | 2 +-
 src/configure.in           | 2 +-
 src/include/config.h.in    | 3 +++
 4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/backend/utils/adt/dt.c b/src/backend/utils/adt/dt.c
index c43e9802ec7..f11c4f55a3a 100644
--- a/src/backend/utils/adt/dt.c
+++ b/src/backend/utils/adt/dt.c
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.9 1997/03/25 20:00:52 scrappy Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.10 1997/03/25 20:02:42 scrappy Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2556,7 +2556,6 @@ int EncodePostgresDate(struct tm *tm, double fsec, char *str)
     char mabbrev[4], dabbrev[4];
     int day;
     double sec;
-    char buf[MAXDATELEN];
 
     sec = (tm->tm_sec + fsec);
 
diff --git a/src/configure b/src/configure
index db9313aebb3..ae24b252083 100755
--- a/src/configure
+++ b/src/configure
@@ -2353,7 +2353,7 @@ else
 fi
 done
 
-for ac_hdr in readline.h history.h dld.h crypt.h endian.h
+for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
diff --git a/src/configure.in b/src/configure.in
index c7213fd75aa..c8d51d1b122 100644
--- a/src/configure.in
+++ b/src/configure.in
@@ -134,7 +134,7 @@ dnl Checks for header files.
 AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
-AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h)
+AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
diff --git a/src/include/config.h.in b/src/include/config.h.in
index 831a7eaf78a..c7ef0c437cd 100644
--- a/src/include/config.h.in
+++ b/src/include/config.h.in
@@ -23,6 +23,9 @@
 /* Set to 1 if you have <termios.h> */
 #undef HAVE_TERMIOS_H
 
+/* Set to 1 if you have <float.h> */
+#undef HAVE_FLOAT_H
+
 /* Set to 1 if you have <limits.h> */
 #undef HAVE_LIMITS_H
 
-- 
GitLab