Created
March 9, 2014 20:59
-
-
Save mpapis/9454473 to your computer and use it in GitHub Desktop.
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
--- a/ext/readline/readline.c (revision 45251) | |
+++ b/ext/readline/readline.c (revision 45252) | |
@@ -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; | |
Index: ext/readline/extconf.rb | |
=================================================================== | |
--- a/ext/readline/extconf.rb (revision 45251) | |
+++ b/ext/readline/extconf.rb (revision 45252) | |
@@ -19,6 +19,10 @@ | |
return super(func, headers) | |
end | |
+def readline.have_type(type) | |
+ return super(type, headers) | |
+end | |
+ | |
dir_config('curses') | |
dir_config('ncurses') | |
dir_config('termcap') | |
@@ -93,4 +97,8 @@ | |
readline.have_func("clear_history") | |
readline.have_func("rl_redisplay") | |
readline.have_func("rl_insert_text") | |
+unless readline.have_type("rl_hook_func_t") | |
+ $DEFS << "-Drl_hook_func_t=Function" | |
+end | |
+ | |
create_makefile("readline") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment