summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-10-30 00:47:50 +0100
committerSergei Golubchik <serg@mariadb.org>2019-10-30 00:47:50 +0100
commit20b72a3fad45bd8fc0bf6987fcec0c21b4f36885 (patch)
tree604e2c01cfbd9570a086a4630aef19bb6c0874f7
parent84088d9458d2119889149c614993b18d67711a5b (diff)
downloadmariadb-git-20b72a3fad45bd8fc0bf6987fcec0c21b4f36885.tar.gz
compilation fix for Windowsbb-5.5-release
-rw-r--r--client/mysql.cc2
1 files changed, 2 insertions, 0 deletions
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;
}