mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-24 10:54:42 +08:00
(AC_CHECK_FUNC): Include errno.h instead of ctype.h in test program.
This commit is contained in:
parent
7e0ffaa162
commit
efeec7fbdd
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user