summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-14 09:34:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-12-14 09:34:47 +0000
commitdf9517ba0d8462fb017583fae88c1b3811e6d073 (patch)
tree61911fb2bc384f2d16cead205ed8557db6246b73 /ext
parent17b448b7a2ede1ad5835fcb0ef02798b6bb8c1f3 (diff)
* ext/readline/readline.c: NetBSD editline does not have
rl_username_completion_function() and rl_completion_matches(). a patch from Takahiro Kambe <taca at back-street.net>. [ruby-dev:30008] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/readline/extconf.rb2
-rw-r--r--ext/readline/readline.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index b67a443..b57a36f 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 4f840ee..559e1c6 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -34,7 +34,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