(AC_CHECK_FUNC): Include errno.h instead of ctype.h in test program.

This commit is contained in:
Roland McGrath 1995-02-25 01:02:00 +00:00
parent 7e0ffaa162
commit efeec7fbdd
2 changed files with 6 additions and 2 deletions

View File

@ -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 <ctype.h> /* 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 <errno.h> /* Arbitrary system header to define __stub macros. */
/* Override any gcc2 internal prototype to avoid an error. */
]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
extern "C"

View File

@ -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 <ctype.h> /* 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 <errno.h> /* Arbitrary system header to define __stub macros. */
/* Override any gcc2 internal prototype to avoid an error. */
]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
extern "C"