aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcl
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-03-26 02:26:09 +0800
committertijl <tijl@FreeBSD.org>2014-03-26 02:26:09 +0800
commitf20ec0b9c9c4c62e74788ceaf2fb43f80af26a7f (patch)
treea5e77d83750209f9cbf81dcf48bb72c6d798106b /lang/gcl
parentf779a172ab0e0615159c086f120bb6a9ffac2115 (diff)
downloadfreebsd-ports-gnome-f20ec0b9c9c4c62e74788ceaf2fb43f80af26a7f.tar.gz
freebsd-ports-gnome-f20ec0b9c9c4c62e74788ceaf2fb43f80af26a7f.tar.zst
freebsd-ports-gnome-f20ec0b9c9c4c62e74788ceaf2fb43f80af26a7f.zip
Import upstream git commit fe57756a5565ca1de89b976a8f2abd6315b1eb65 to
fix compilation with devel/readline 6.3. PR: ports/187730 Submitted by: Mamoru Iwaki <1wkmmr@gmail.com>
Diffstat (limited to 'lang/gcl')
-rw-r--r--lang/gcl/Makefile2
-rw-r--r--lang/gcl/files/patch-o-gcl_readline.d20
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;