Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita5da813

Browse files
committed
Add missing include files to configure tests
atoi() needs stdlib.hstrcmp() needs string.hReviewed-by: Heikki Linnakangas <hlinnaka@iki.fi>Reviewed-by: Thomas Munro <thomas.munro@enterprisedb.com>
1 parent1c0cf52 commita5da813

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎config/c-library.m4

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
4242
fi
4343
AC_CACHE_CHECK(fortzname,ac_cv_var_tzname,
4444
[AC_LINK_IFELSE([AC_LANG_PROGRAM(
45-
[[#include <time.h>
45+
[[#include <stdlib.h>
46+
#include <time.h>
4647
#ifndef tzname /* For SGI. */
4748
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4849
#endif
@@ -184,6 +185,7 @@ AC_DEFUN([PGAC_FUNC_SNPRINTF_LONG_LONG_INT_MODIFIER],
184185
AC_CACHE_VAL(pgac_cv_snprintf_long_long_int_modifier,
185186
[for pgac_modifier in 'll' 'q' 'I64'; do
186187
AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
188+
#include <string.h>
187189
typedef long long int ac_int64;
188190
#define INT64_FORMAT "%${pgac_modifier}d"
189191

‎configure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11569,6 +11569,7 @@ if ${ac_cv_var_tzname+:} false; then :
1156911569
else
1157011570
cat confdefs.h -<<_ACEOF >conftest.$ac_ext
1157111571
/* end confdefs.h. */
11572+
#include <stdlib.h>
1157211573
#include <time.h>
1157311574
#ifndef tzname /* For SGI. */
1157411575
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
@@ -13754,6 +13755,7 @@ else
1375413755
cat confdefs.h -<<_ACEOF >conftest.$ac_ext
1375513756
/* end confdefs.h. */
1375613757
#include <stdio.h>
13758+
#include <string.h>
1375713759
typedef long long int ac_int64;
1375813760
#define INT64_FORMAT "%${pgac_modifier}d"
1375913761

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp