From 20b72a3fad45bd8fc0bf6987fcec0c21b4f36885 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 30 Oct 2019 00:47:50 +0100 Subject: [PATCH] compilation fix for Windows --- client/mysql.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/mysql.cc b/client/mysql.cc index 86ee22e5e6a..7329f2298ab 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1378,9 +1378,11 @@ sig_handler handle_sigint(int sig) if (!executing_query) { tee_fprintf(stdout, "Ctrl-C\n"); +#ifdef HAVE_READLINE rl_on_new_line(); // Regenerate the prompt on a newline rl_replace_line("", 0); // Clear the previous text rl_redisplay(); +#endif return; }