bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-readline] [PATCH] RL_LIB_READLINE_VERSION test needs <stdlib.h> for


From: Florian Weimer
Subject: [Bug-readline] [PATCH] RL_LIB_READLINE_VERSION test needs <stdlib.h> for C99 compilers
Date: Fri, 06 Sep 2019 12:14:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)

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;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]