Last active
August 29, 2015 14:00
-
-
Save wk8/fef2479af6b16a9cac71 to your computer and use it in GitHub Desktop.
Minimal patch to get ruby 2.1.1 to compile with readline 6.3.x (?) on Mac OS X. Usage: curl -L https://gist.github.com/wk8/fef2479af6b16a9cac71/raw | ruby-build 2.1.1 --patch or curl -L https://gist.github.com/wk8/fef2479af6b16a9cac71/raw | rbenv install --patch 2.1.1, depending on what you're using.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ext/readline/readline.c | |
+++ 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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using with ruby-install:
It'll ask what file to apply the patch to; use
ext/readline/readline.c