From: Roland McGrath Date: Sat, 25 Feb 1995 01:02:00 +0000 (+0000) Subject: (AC_CHECK_FUNC): Include errno.h instead of ctype.h in test program. X-Git-Tag: fsf-origin~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efeec7fbdd2b83084235f7a5a41d7abfe5ba7e11;p=thirdparty%2Fautoconf.git (AC_CHECK_FUNC): Include errno.h instead of ctype.h in test program. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index 0e816b5e7..109cba181 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -1471,7 +1471,9 @@ AC_DEFUN(AC_CHECK_FUNC, [AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(ac_cv_func_$1, [AC_TRY_LINK( -[#include /* Arbitrary system header to define __stub macros. */ +[/* This header should be one that does not declare any functions. + Such declarations can conflict with `char $1();' below. */ +#include /* Arbitrary system header to define __stub macros. */ /* Override any gcc2 internal prototype to avoid an error. */ ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus extern "C" diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 0e816b5e7..109cba181 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -1471,7 +1471,9 @@ AC_DEFUN(AC_CHECK_FUNC, [AC_MSG_CHECKING([for $1]) AC_CACHE_VAL(ac_cv_func_$1, [AC_TRY_LINK( -[#include /* Arbitrary system header to define __stub macros. */ +[/* This header should be one that does not declare any functions. + Such declarations can conflict with `char $1();' below. */ +#include /* Arbitrary system header to define __stub macros. */ /* Override any gcc2 internal prototype to avoid an error. */ ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus extern "C"