]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AC_CHECK_FUNC): Include errno.h instead of ctype.h in test program.
authorRoland McGrath <roland@gnu.org>
Sat, 25 Feb 1995 01:02:00 +0000 (01:02 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 25 Feb 1995 01:02:00 +0000 (01:02 +0000)
acgeneral.m4
lib/autoconf/general.m4

index 0e816b5e77ac6dbd7503db362107e90f350ff1db..109cba181ff1a93be4286e874126b6873d20abeb 100644 (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"
index 0e816b5e77ac6dbd7503db362107e90f350ff1db..109cba181ff1a93be4286e874126b6873d20abeb 100644 (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"