[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"
[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"