summaryrefslogtreecommitdiff
blob: a593a50db388b448d05927948741f811ea8db35d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Upstream patch from revision 45225 for breakage introduced in readline 6.3.
# https://bugs.gentoo.org/show_bug.cgi?id=503106
# https://bugs.ruby-lang.org/issues/9578

# This solution is later patched to also work with <readline-4.2 but
# we don't have these versions in tree anymore.

--- ext/readline/readline.c.~1~	2013-02-01 06:37:29.000000000 +0100
+++ ext/readline/readline.c	2014-03-05 08:00:01.952968497 +0100
@@ -1883,7 +1883,7 @@
 
     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;