summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-11-09 08:26:59 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2021-11-09 08:26:59 +0200
commit524b4a89da3d9143ad72a82d73617ffde9e3a7a8 (patch)
tree4365b284812f3ea742b0d7bb96f2447c3c657b54 /client
parentf7054ff5dfea7b84afdde11c14898cff7154521e (diff)
parentd6d1a1fc21084c81a0795a26e67577c2a718f6ea (diff)
downloadmariadb-git-524b4a89da3d9143ad72a82d73617ffde9e3a7a8.tar.gz
Merge 10.2 into 10.3
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc14
1 files changed, 9 insertions, 5 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 31b56441f23..e1069017c82 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1,6 +1,6 @@
/*
Copyright (c) 2000, 2018, Oracle and/or its affiliates.
- Copyright (c) 2009, 2019, MariaDB Corporation.
+ Copyright (c) 2009, 2021, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -90,10 +90,14 @@ extern "C" {
#if defined(__WIN__)
#include <conio.h>
#else
-#include <readline.h>
-#if !defined(USE_LIBEDIT_INTERFACE)
-#include <history.h>
-#endif
+# ifdef __APPLE__
+# include <editline/readline.h>
+# else
+# include <readline.h>
+# if !defined(USE_LIBEDIT_INTERFACE)
+# include <history.h>
+# endif
+# endif
#define HAVE_READLINE
#define USE_POPEN
#endif