--- percona-server-5.7.39-42/client/mysql.cc.1 2022-09-16 13:48:14.940634746 +0000 +++ percona-server-5.7.39-42/client/mysql.cc 2022-09-16 13:55:23.168238812 +0000 @@ -54,10 +54,6 @@ #include #endif -#if defined(USE_LIBEDIT_INTERFACE) -#include -#endif - #ifdef HAVE_PWD_H #include #endif @@ -81,6 +77,10 @@ #define USE_POPEN #endif +#ifdef HAVE_READLINE +#include +#endif + #include #include #include