Skip to content

Commit 20b72a3

Browse files
committed
compilation fix for Windows
1 parent 84088d9 commit 20b72a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/mysql.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,9 +1378,11 @@ sig_handler handle_sigint(int sig)
13781378
if (!executing_query)
13791379
{
13801380
tee_fprintf(stdout, "Ctrl-C\n");
1381+
#ifdef HAVE_READLINE
13811382
rl_on_new_line(); // Regenerate the prompt on a newline
13821383
rl_replace_line("", 0); // Clear the previous text
13831384
rl_redisplay();
1385+
#endif
13841386
return;
13851387
}
13861388

0 commit comments

Comments
 (0)