1 diff -ur percona-server-5.7.28-31.orig/cmake/readline.cmake percona-server-5.7.28-31/cmake/readline.cmake
2 --- percona-server-5.7.28-31.orig/cmake/readline.cmake 2019-12-16 23:52:33.110000000 +0100
3 +++ percona-server-5.7.28-31/cmake/readline.cmake 2019-12-16 23:53:01.681000000 +0100
6 MACRO (FIND_SYSTEM_EDITLINE)
7 FIND_PATH(FOUND_EDITLINE_READLINE
8 - NAMES editline/readline.h
9 + NAMES readline/readline.h
11 IF(FOUND_EDITLINE_READLINE)
12 - SET(EDITLINE_INCLUDE_DIR "${FOUND_EDITLINE_READLINE}/editline")
13 + SET(EDITLINE_INCLUDE_DIR "${FOUND_EDITLINE_READLINE}/readline")
15 # Different path on FreeBSD
16 FIND_PATH(FOUND_EDIT_READLINE_READLINE
17 NAMES edit/readline/readline.h
19 IF(FOUND_EDIT_READLINE_READLINE)
20 - SET(EDITLINE_INCLUDE_DIR "${FOUND_EDIT_READLINE_READLINE}/edit/readline")
21 + SET(EDITLINE_INCLUDE_DIR "${FOUND_EDIT_READLINE_READLINE}/readline")
25 FIND_LIBRARY(EDITLINE_LIBRARY
30 MARK_AS_ADVANCED(EDITLINE_INCLUDE_DIR EDITLINE_LIBRARY)
33 SET(CMAKE_REQUIRED_LIBRARIES ${EDITLINE_LIBRARY})
34 CHECK_CXX_SOURCE_COMPILES("
36 - #include <readline.h>
37 + #include <readline/history.h>
38 int main(int argc, char **argv)
43 CHECK_CXX_SOURCE_COMPILES("
45 - #include <readline.h>
46 + #include <readline/readline.h>
47 int main(int argc, char **argv)
49 - typedef int MYFunction(const char*, int);
50 - MYFunction* myf= rl_completion_entry_function;
51 - int res= (myf)(NULL, 0);
52 - completion_matches(0,0);
54 + rl_compentry_func_t *myf= rl_completion_entry_function;
55 + char *res= (myf)(NULL, 0);
56 + rl_completion_matches(0,0);
59 EDITLINE_HAVE_COMPLETION_INT)