From a31f0f503df4d70ebb5960803c7092dc170bee92 Mon Sep 17 00:00:00 2001 From: Eric Frias Date: Mon, 27 Jul 2015 12:08:28 -0400 Subject: [PATCH] Fix compile error when readline not available --- src/rpc/cli.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index 96000e5..d3070fb 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -165,10 +165,12 @@ static char** cli_completion( const char * text , int start, int end) char **matches; matches = (char **)NULL; +#ifdef HAVE_READLINE if (start == 0) matches = rl_completion_matches ((char*)text, &my_generator); else rl_bind_key('\t',rl_abort); +#endif return (matches); }