diff options
author | Tijl Coosemans <tijl@FreeBSD.org> | 2014-03-25 18:26:09 +0000 |
---|---|---|
committer | Tijl Coosemans <tijl@FreeBSD.org> | 2014-03-25 18:26:09 +0000 |
commit | 1e5cb0b6bf28edf8fa2f78dcd483fba1f5086e71 (patch) | |
tree | a5e77d83750209f9cbf81dcf48bb72c6d798106b /lang | |
parent | 0cfd925acdbbe028d44a054e619f69fbb5102f80 (diff) |
Notes
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcl/Makefile | 2 | ||||
-rw-r--r-- | lang/gcl/files/patch-o-gcl_readline.d | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/lang/gcl/Makefile b/lang/gcl/Makefile index 1defd1c757e8..6ff5a09745da 100644 --- a/lang/gcl/Makefile +++ b/lang/gcl/Makefile @@ -3,7 +3,7 @@ PORTNAME= gcl PORTVERSION= 2.6.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang tcl tk MASTER_SITES= GNU diff --git a/lang/gcl/files/patch-o-gcl_readline.d b/lang/gcl/files/patch-o-gcl_readline.d new file mode 100644 index 000000000000..d4bded9a6c3d --- /dev/null +++ b/lang/gcl/files/patch-o-gcl_readline.d @@ -0,0 +1,20 @@ +--- o/gcl_readline.d.orig ++++ o/gcl_readline.d +@@ -221,7 +221,7 @@ + in case we want to do some simple parsing. Return the array of matches, + or NULL if there aren't any. */ + /* extern char **rl_completion_matches(char *,char *(*)(char *,int)); */ +-static char **rl_completion(char *text, int start, int end) { ++static char **rl_completion(const char *text, int start, int end) { + return rl_completion_matches(text, (rl_compentry_func_t *)rl_completion_words_new); + } + #endif +@@ -469,7 +469,7 @@ + char *pn="GCL",*cp=getenv("TERM"); + rl_readline_name=pn; + #ifdef RL_COMPLETION +- rl_attempted_completion_function = (CPPFunction *)rl_completion; ++ rl_attempted_completion_function = rl_completion; + #endif + if (isatty(0) && (!cp || strcmp(cp,"dumb"))) + readline_on=1; |