diff --git a/src/rpc/cli.cpp b/src/rpc/cli.cpp index 7694e2fe7..570f9ff62 100644 --- a/src/rpc/cli.cpp +++ b/src/rpc/cli.cpp @@ -119,6 +119,8 @@ void cli::run() } } +#ifdef HAVE_EDITLINE + /**** * @brief loop through list of commands, attempting to find a match * @param token what the user typed @@ -228,7 +230,6 @@ static int cli_check_secret(const char *source) */ static int cli_quitting = false; -#ifndef WIN32 /** * Get next character from stdin, or EOF if got a SIGINT signal */ @@ -247,7 +248,8 @@ static int interruptible_getc(void) return r == 1 && !cli_quitting ? c : EOF; } -#endif + +#endif //HAVE_EDITLINE void cli::start() {