summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/mysql.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index cd2c37972bc..177d0f60757 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -90,7 +90,11 @@ extern "C" {
#if defined(__WIN__)
#include <conio.h>
#else
-#include <readline.h>
+# ifdef __APPLE__
+# include <editline/readline.h>
+# else
+# include <readline.h>
+# endif
#define HAVE_READLINE
#define USE_POPEN
#endif