Commit a5da8135 authored by Peter Eisentraut's avatar Peter Eisentraut

Add missing include files to configure tests

atoi() needs stdlib.h
strcmp() needs string.h
Reviewed-by: default avatarHeikki Linnakangas <hlinnaka@iki.fi>
Reviewed-by: default avatarThomas Munro <thomas.munro@enterprisedb.com>
parent 1c0cf52b
...@@ -42,7 +42,8 @@ if test "$ac_cv_member_struct_tm_tm_zone" = yes; then ...@@ -42,7 +42,8 @@ if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
fi fi
AC_CACHE_CHECK(for tzname, ac_cv_var_tzname, AC_CACHE_CHECK(for tzname, ac_cv_var_tzname,
[AC_LINK_IFELSE([AC_LANG_PROGRAM( [AC_LINK_IFELSE([AC_LANG_PROGRAM(
[[#include <time.h> [[#include <stdlib.h>
#include <time.h>
#ifndef tzname /* For SGI. */ #ifndef tzname /* For SGI. */
extern char *tzname[]; /* RS6000 and others reject char **tzname. */ extern char *tzname[]; /* RS6000 and others reject char **tzname. */
#endif #endif
...@@ -184,6 +185,7 @@ AC_DEFUN([PGAC_FUNC_SNPRINTF_LONG_LONG_INT_MODIFIER], ...@@ -184,6 +185,7 @@ AC_DEFUN([PGAC_FUNC_SNPRINTF_LONG_LONG_INT_MODIFIER],
AC_CACHE_VAL(pgac_cv_snprintf_long_long_int_modifier, AC_CACHE_VAL(pgac_cv_snprintf_long_long_int_modifier,
[for pgac_modifier in 'll' 'q' 'I64'; do [for pgac_modifier in 'll' 'q' 'I64'; do
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h> AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
#include <string.h>
typedef long long int ac_int64; typedef long long int ac_int64;
#define INT64_FORMAT "%${pgac_modifier}d" #define INT64_FORMAT "%${pgac_modifier}d"
......
...@@ -11569,6 +11569,7 @@ if ${ac_cv_var_tzname+:} false; then : ...@@ -11569,6 +11569,7 @@ if ${ac_cv_var_tzname+:} false; then :
else else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <stdlib.h>
#include <time.h> #include <time.h>
#ifndef tzname /* For SGI. */ #ifndef tzname /* For SGI. */
extern char *tzname[]; /* RS6000 and others reject char **tzname. */ extern char *tzname[]; /* RS6000 and others reject char **tzname. */
...@@ -13754,6 +13755,7 @@ else ...@@ -13754,6 +13755,7 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <stdio.h> #include <stdio.h>
#include <string.h>
typedef long long int ac_int64; typedef long long int ac_int64;
#define INT64_FORMAT "%${pgac_modifier}d" #define INT64_FORMAT "%${pgac_modifier}d"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment