Skip to content

Instantly share code, notes, and snippets.

@10io
Last active August 29, 2015 13:59
Show Gist options
  • Save 10io/10968856 to your computer and use it in GitHub Desktop.
Save 10io/10968856 to your computer and use it in GitHub Desktop.
readline patch for ruby-install ruby-2.1.0
ruby-install -p https://gist.githubusercontent.com/10io/10968856/raw/b7986c9d83435139014ddca1135335fe67c02463/readline_2.1.0.patch ruby 2.1.0

ruby-install -p https://gist.githubusercontent.com/10io/10968856/raw/b45c350abad13ca910945676fc411592f21260a6/readline_2.0.0.patch ruby 2.0.0
--- ext/readline/readline.c 2014-04-17 11:27:45.000000000 +0200
+++ ext/readline/readline.c 2014-04-17 11:27:57.000000000 +0200
@@ -1886,7 +1886,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;
--- ext/readline/readline.c 2014-04-17 11:27:45.000000000 +0200
+++ ext/readline/readline.c 2014-04-17 11:27:57.000000000 +0200
@@ -1974,7 +1974,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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment