diff -urNpa mysql-8.4.0.orig/client/mysql.cc mysql-8.4.0/client/mysql.cc --- mysql-8.4.0.orig/client/mysql.cc 2024-05-09 15:04:59.682084155 +0200 +++ mysql-8.4.0/client/mysql.cc 2024-05-09 15:05:11.982254902 +0200 @@ -93,6 +93,7 @@ Foundation, Inc., 51 Franklin St, Fifth #define LOG_USER 0 #else #include +#include #include #define HAVE_READLINE @@ -1185,22 +1186,6 @@ static COMMANDS commands[] = { static const char *load_default_groups[] = {"mysql", "client", nullptr}; #ifdef HAVE_READLINE -/* - HIST_ENTRY is defined for libedit, but not for the real readline - Need to redefine it for real readline to find it -*/ -#if !defined(HAVE_HIST_ENTRY) -typedef struct _hist_entry { - const char *line; - const char *data; -} HIST_ENTRY; -#endif - -extern "C" int add_history(const char *command); /* From readline directory */ -extern "C" int read_history(const char *command); -extern "C" int write_history(const char *command); -extern "C" HIST_ENTRY *history_get(int num); -extern "C" int history_length; static int not_in_history(const char *line); static void initialize_readline(char *name); #endif /* HAVE_READLINE */