X-Git-Url: https://git.tld-linux.org/?p=packages%2Fmysql.git;a=blobdiff_plain;f=mysql-readline.patch;fp=mysql-readline.patch;h=ca2af0668c8745f1be45a0c7332a3ec5ddfdf1c1;hp=0000000000000000000000000000000000000000;hb=6d4f90321faeda56bdcd443d4f9054776bd9cfcf;hpb=da608bb7673207e574610ab4ceae97a34615966c diff --git a/mysql-readline.patch b/mysql-readline.patch new file mode 100644 index 0000000..ca2af06 --- /dev/null +++ b/mysql-readline.patch @@ -0,0 +1,33 @@ +--- mysql-8.0.20/client/mysql.cc~ 2020-05-12 19:39:17.000000000 +0200 ++++ mysql-8.0.20/client/mysql.cc 2020-05-12 19:49:31.903300850 +0200 +@@ -79,6 +79,7 @@ + #define LOG_USER 0 + #else + #include ++#include + #include + + #define HAVE_READLINE +@@ -1134,22 +1134,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 */