diff options
Diffstat (limited to 'ext/readline')
-rw-r--r-- | ext/readline/extconf.rb | 2 | ||||
-rw-r--r-- | ext/readline/readline.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb index b67a443dad..b57a36f3a5 100644 --- a/ext/readline/extconf.rb +++ b/ext/readline/extconf.rb @@ -43,6 +43,8 @@ else end have_readline_var("rl_filename_completion_function") +have_readline_var("rl_username_completion_function") +have_readline_var("rl_completion_matches") have_readline_var("rl_deprep_term_function") have_readline_var("rl_completion_append_character") have_readline_var("rl_basic_word_break_characters") diff --git a/ext/readline/readline.c b/ext/readline/readline.c index 1e64675176..0b50b438a9 100644 --- a/ext/readline/readline.c +++ b/ext/readline/readline.c @@ -38,7 +38,11 @@ static ID completion_proc, completion_case_fold; #ifndef HAVE_RL_FILENAME_COMPLETION_FUNCTION # define rl_filename_completion_function filename_completion_function +#endif +#ifndef HAVE_RL_USERNAME_COMPLETION_FUNCTION # define rl_username_completion_function username_completion_function +#endif +#ifndef HAVE_RL_COMPLETION_MATCHES # define rl_completion_matches completion_matches #endif |