Browse Source
- Minor version update - Remove gssapi plugin to avoid krb5 dependency - Build with system libedit instead of outdated bundled readline - Mark up dependency on ncurses - Some formattingandroid-5
4 changed files with 66 additions and 21 deletions
@ -0,0 +1,25 @@ |
|||||
|
diff -u -r ../mariadb-10.1.22/client/mysql.cc ./client/mysql.cc
|
||||
|
--- ../mariadb-10.1.22/client/mysql.cc 2017-03-11 20:08:54.000000000 +0100
|
||||
|
+++ ./client/mysql.cc 2017-04-07 03:12:08.091397345 +0200
|
||||
|
@@ -2676,9 +2676,9 @@
|
||||
|
#ifdef HAVE_LOCALE_H |
||||
|
setlocale(LC_ALL,""); /* so as libedit use isprint */ |
||||
|
#endif |
||||
|
- rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion;
|
||||
|
- rl_completion_entry_function= &no_completion;
|
||||
|
- rl_add_defun("magic-space", (Function*)&fake_magic_space, -1);
|
||||
|
+ rl_attempted_completion_function= (rl_completion_func_t*)&new_mysql_completion;
|
||||
|
+ rl_completion_entry_function= (rl_compentry_func_t*)&no_completion;
|
||||
|
+ rl_add_defun("magic-space", (rl_command_func_t*)&fake_magic_space, -1);
|
||||
|
#else |
||||
|
rl_attempted_completion_function= (CPPFunction*)&new_mysql_completion; |
||||
|
rl_completion_entry_function= &no_completion; |
||||
|
@@ -2700,7 +2700,7 @@
|
||||
|
#if defined(USE_NEW_READLINE_INTERFACE) |
||||
|
return rl_completion_matches(text, new_command_generator); |
||||
|
#else |
||||
|
- return completion_matches((char *)text, (CPFunction *)new_command_generator);
|
||||
|
+ return completion_matches((char *)text, (rl_compentry_func_t *)new_command_generator);
|
||||
|
#endif |
||||
|
else |
||||
|
return (char**) 0; |
@ -0,0 +1,12 @@ |
|||||
|
diff -u -r ../mariadb-10.1.22/cmake/readline.cmake ./cmake/readline.cmake
|
||||
|
--- ../mariadb-10.1.22/cmake/readline.cmake 2017-03-11 20:08:54.000000000 +0100
|
||||
|
+++ ./cmake/readline.cmake 2017-04-07 02:43:58.242765383 +0200
|
||||
|
@@ -180,7 +180,7 @@
|
||||
|
#include <readline.h> |
||||
|
int main(int argc, char **argv) |
||||
|
{ |
||||
|
- int res= (*rl_completion_entry_function)(0,0);
|
||||
|
+ char* res= (*rl_completion_entry_function)(0,0);
|
||||
|
completion_matches(0,0); |
||||
|
}" |
||||
|
LIBEDIT_INTERFACE) |
@ -1,12 +0,0 @@ |
|||||
--- ./extra/readline/complete.c 2017-01-18 01:08:19.000000000 +0530
|
|
||||
+++ ../complete.c 2017-02-03 08:35:29.752470580 +0530
|
|
||||
@@ -1854,8 +1854,8 @@
|
|
||||
username = savestring (&text[first_char_loc]); |
|
||||
#if defined (HAVE_GETPWENT) |
|
||||
namelen = strlen (username); |
|
||||
-#endif
|
|
||||
setpwent (); |
|
||||
+#endif
|
|
||||
} |
|
||||
|
|
||||
#if defined (HAVE_GETPWENT) |
|
Loading…
Reference in new issue