From 9d2689cee7e62d9f996d4cfdbb1dcb728455702a Mon Sep 17 00:00:00 2001 From: Jonathan Yong <10walls@gmail.com> Date: Sat, 28 Jun 2014 10:08:25 +0800 Subject: [PATCH 19/24] fix some implicit declaration warnings --- libiberty/aclocal.m4 | 6 +++++- libiberty/configure | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libiberty/aclocal.m4 b/libiberty/aclocal.m4 index bf8a907..6b5e66c 100644 --- a/libiberty/aclocal.m4 +++ b/libiberty/aclocal.m4 @@ -15,6 +15,8 @@ AC_CACHE_CHECK([for working strncmp], ac_cv_func_strncmp_works, /* Test by Jim Wilson and Kaveh Ghazi. Check whether strncmp reads past the end of its string parameters. */ #include +#include +#include #ifdef HAVE_FCNTL_H #include @@ -147,7 +149,9 @@ if test $ac_cv_os_cray = yes; then fi AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction, -[AC_TRY_RUN([find_stack_direction () +[AC_TRY_RUN([ +#include +find_stack_direction () { static char *addr = 0; auto char dummy; diff --git a/libiberty/configure b/libiberty/configure index 7bde9b3..1b9f1ec 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -6077,6 +6077,7 @@ else else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ +#include find_stack_direction () { static char *addr = 0; @@ -6846,6 +6847,8 @@ else /* Test by Jim Wilson and Kaveh Ghazi. Check whether strncmp reads past the end of its string parameters. */ #include +#include +#include #ifdef HAVE_FCNTL_H #include -- 2.1.1