Otherwise, the test always fails on C99 compilers which do not support
implicit function declarations.
Thanks,
Florian
diff --git a/examples/autoconf/RL_LIB_READLINE_VERSION
b/examples/autoconf/RL_LIB_READLINE_VERSION
index 883942c..4d5faa5 100644
--- a/examples/autoconf/RL_LIB_READLINE_VERSION
+++ b/examples/autoconf/RL_LIB_READLINE_VERSION
@@ -34,6 +34,7 @@ LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
AC_CACHE_VAL(ac_cv_rl_version,
[AC_TRY_RUN([
#include <stdio.h>
+#include <stdlib.h>
#include <readline/readline.h>
extern int rl_gnu_readline_p;
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline