blob: 4c251b15fc56999b798bf3848c6dba38fac1a047 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- cmake/readline.cmake.orig 2016-09-30 11:41:40 UTC
+++ cmake/readline.cmake
@@ -173,11 +173,11 @@ MACRO (FIND_SYSTEM_EDITLINE)
#include <readline.h>
int main(int argc, char **argv)
{
- typedef int MYFunction(const char*, int);
+ typedef char *MYFunction(const char*, int);
MYFunction* myf= rl_completion_entry_function;
- int res= (myf)(NULL, 0);
+ char *res= (myf)(NULL, 0);
completion_matches(0,0);
- return res;
+ return (res != NULL);
}"
EDITLINE_HAVE_COMPLETION)
|