summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <rburnett@bk-internal.mysql.com>2005-05-05 17:48:50 +0200
committerunknown <rburnett@bk-internal.mysql.com>2005-05-05 17:48:50 +0200
commit09ca059e4a5a7ffb982fa68e82bdec71091c5269 (patch)
tree0aea32df45355ddef4c77c310d2ea0a44861a5ea /client
parentd4b3d364edc4d40a9910dd87c33b27a3cab7865c (diff)
downloadmariadb-git-09ca059e4a5a7ffb982fa68e82bdec71091c5269.tar.gz
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 client/mysql.cc: Add #ifdef to only print readline version if we are on a platform that supports readline BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index f27db0de8d8..cbcffb180c3 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -698,9 +698,15 @@ static void usage(int version)
const char* readline= "readline";
#endif
+#ifdef HAVE_READLINE
printf("%s Ver %s Distrib %s, for %s (%s) using %s %s\n",
my_progname, VER, MYSQL_SERVER_VERSION, SYSTEM_TYPE, MACHINE_TYPE,
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)
return;
printf("\