summaryrefslogtreecommitdiff
path: root/lang/ruby21-base/patches
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2014-03-29 01:21:36 +0000
committertaca <taca@pkgsrc.org>2014-03-29 01:21:36 +0000
commit56c7e715ec8dc08452fd2b840ff9621e3929203e (patch)
tree2bb2d7bfeaeff097c9b241acd1b09cf1376ec216 /lang/ruby21-base/patches
parent7c0a7e1f6f98686d17e377d805be1ea6f6b3547f (diff)
downloadpkgsrc-56c7e715ec8dc08452fd2b840ff9621e3929203e.tar.gz
Fix ruby-readline build problem with readline 6.3 and later.
Diffstat (limited to 'lang/ruby21-base/patches')
-rw-r--r--lang/ruby21-base/patches/patch-ext_readline_readline.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/ruby21-base/patches/patch-ext_readline_readline.c b/lang/ruby21-base/patches/patch-ext_readline_readline.c
new file mode 100644
index 00000000000..4ecc67e2716
--- /dev/null
+++ b/lang/ruby21-base/patches/patch-ext_readline_readline.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-ext_readline_readline.c,v 1.1 2014/03/29 01:23:58 taca Exp $
+
+* Don't use legacy type of readline.
+
+--- ext/readline/readline.c.orig 2013-10-29 03:09:00.000000000 +0000
++++ ext/readline/readline.c
+@@ -1974,7 +1974,7 @@ Init_readline()
+
+ rl_attempted_completion_function = readline_attempted_completion_function;
+ #if defined(HAVE_RL_PRE_INPUT_HOOK)
+- rl_pre_input_hook = (Function *)readline_pre_input_hook;
++ rl_pre_input_hook = (rl_hook_func_t *)readline_pre_input_hook;
+ #endif
+ #ifdef HAVE_RL_CATCH_SIGNALS
+ rl_catch_signals = 0;