Skip to content

Commit 64c82a5

Browse files
committed
Add checs for float.h
Remove 'unused variable' from dt.c
1 parent 719a413 commit 64c82a5

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/backend/utils/adt/dt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.9 1997/03/25 20:00:52 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.10 1997/03/25 20:02:42 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -2556,7 +2556,6 @@ int EncodePostgresDate(struct tm *tm, double fsec, char *str)
25562556
char mabbrev[4], dabbrev[4];
25572557
int day;
25582558
double sec;
2559-
char buf[MAXDATELEN];
25602559

25612560
sec = (tm->tm_sec + fsec);
25622561

src/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2353,7 +2353,7 @@ else
23532353
fi
23542354
done
23552355

2356-
for ac_hdr in readline.h history.h dld.h crypt.h endian.h
2356+
for ac_hdr in readline.h history.h dld.h crypt.h endian.h float.h
23572357
do
23582358
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23592359
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6

src/configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ dnl Checks for header files.
134134
AC_HEADER_STDC
135135
AC_HEADER_SYS_WAIT
136136
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
137-
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h)
137+
AC_CHECK_HEADERS(readline.h history.h dld.h crypt.h endian.h float.h)
138138

139139
dnl Checks for typedefs, structures, and compiler characteristics.
140140
AC_C_CONST

src/include/config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
/* Set to 1 if you have <termios.h> */
2424
#undef HAVE_TERMIOS_H
2525

26+
/* Set to 1 if you have <float.h> */
27+
#undef HAVE_FLOAT_H
28+
2629
/* Set to 1 if you have <limits.h> */
2730
#undef HAVE_LIMITS_H
2831

0 commit comments

Comments
 (0)