Bug #10245 VC++ compiler error with mysql.cc
Only print the read line version if we are on a platform that supports readline mysql.cc: Add #ifdef to only print readline version if we are on a platform that supports readline
This commit is contained in:
parent
9f5a51e8d6
commit
8e286b7934
@ -195,6 +195,7 @@ ram@mysql.r18.ru
|
|||||||
ram@ram.(none)
|
ram@ram.(none)
|
||||||
ramil@mysql.com
|
ramil@mysql.com
|
||||||
ranger@regul.home.lan
|
ranger@regul.home.lan
|
||||||
|
rburnett@bk-internal.mysql.com
|
||||||
rburnett@build.mysql.com
|
rburnett@build.mysql.com
|
||||||
reggie@bob.(none)
|
reggie@bob.(none)
|
||||||
reggie@mdk10.(none)
|
reggie@mdk10.(none)
|
||||||
|
@ -698,9 +698,15 @@ static void usage(int version)
|
|||||||
const char* readline= "readline";
|
const char* readline= "readline";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_READLINE
|
||||||
printf("%s Ver %s Distrib %s, for %s (%s) using %s %s\n",
|
printf("%s Ver %s Distrib %s, for %s (%s) using %s %s\n",
|
||||||
my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE,
|
my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE,
|
||||||
readline, rl_library_version);
|
readline, rl_library_version);
|
||||||
|
#else
|
||||||
|
printf("%s Ver %s Distrib %s, for %s (%s)", my_progname, VER,
|
||||||
|
MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (version)
|
if (version)
|
||||||
return;
|
return;
|
||||||
printf("\
|
printf("\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user