summaryrefslogtreecommitdiff
path: root/net/scli/patches/patch-scli_scli.c
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2014-04-21 18:13:57 +0000
committerjoerg <joerg@pkgsrc.org>2014-04-21 18:13:57 +0000
commiteb9e9bcefc55441d70da983ed2076ad2824153f3 (patch)
tree1ea04b7932e00631f7e678746100767bf2075913 /net/scli/patches/patch-scli_scli.c
parent717d7af8dcc4764b50f717e99e252a2e08941278 (diff)
downloadpkgsrc-eb9e9bcefc55441d70da983ed2076ad2824153f3.tar.gz
Fix build against readline 6.3.
Diffstat (limited to 'net/scli/patches/patch-scli_scli.c')
-rw-r--r--net/scli/patches/patch-scli_scli.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net/scli/patches/patch-scli_scli.c b/net/scli/patches/patch-scli_scli.c
new file mode 100644
index 00000000000..a0425dbf99d
--- /dev/null
+++ b/net/scli/patches/patch-scli_scli.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-scli_scli.c,v 1.1 2014/04/21 18:13:57 joerg Exp $
+
+--- scli/scli.c.orig 2014-04-20 18:56:10.000000000 +0000
++++ scli/scli.c
+@@ -216,7 +216,7 @@ generator(char const *text, int state)
+ */
+
+ static char**
+-completion(char *text, int start, int end)
++completion(const char *text, int start, int end)
+ {
+ char **matches;
+
+@@ -262,7 +262,7 @@ readline_init()
+ rl_readline_name = "scli";
+
+ /* Tell the completer that we want a crack first. */
+- rl_attempted_completion_function = (CPPFunction *) completion;
++ rl_attempted_completion_function = completion;
+ }
+
+ /*