mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Import upstream git commit fe57756a5565ca1de89b976a8f2abd6315b1eb65 to
fix compilation with devel/readline 6.3. PR: ports/187730 Submitted by: Mamoru Iwaki <1wkmmr@gmail.com>
This commit is contained in:
parent
0cfd925acd
commit
1e5cb0b6bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349167
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= gcl
|
||||
PORTVERSION= 2.6.10
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= lang tcl tk
|
||||
MASTER_SITES= GNU
|
||||
|
||||
|
20
lang/gcl/files/patch-o-gcl_readline.d
Normal file
20
lang/gcl/files/patch-o-gcl_readline.d
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user