summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 15:26:30 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-17 15:26:30 +0000
commit37859b522727f99e76ab0878822ae4b0bc412bed (patch)
treec217624af4faa24915ffd70999b0475a74112e5a /ext/readline
parent229b4e4c3773949987950c7fa5ed09868fcd094d (diff)
* ext/readline/readline.c (Init_readline): rl_catch_signals does
not exist on some platform like Mac OS X 10.5. * ext/readline/extconf.rb: checks existance of rl_catch_signals. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/extconf.rb1
-rw-r--r--ext/readline/readline.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index bab6e3e..14c2099 100644
--- a/ext/readline/extconf.rb
+++ b/ext/readline/extconf.rb
@@ -66,6 +66,7 @@ have_readline_var("rl_point")
# workaround for native windows.
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_event_hook")
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_sigwinch")
+/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_signals")
have_readline_func("rl_cleanup_after_signal")
have_readline_func("rl_clear_signals")
have_readline_func("rl_set_screen_size")
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index 5f1c355..20630d3 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -1451,7 +1451,9 @@ Init_readline()
#elif defined HAVE_RL_EVENT_HOOK
rl_event_hook = readline_event;
#endif
+#ifdef HAVE_RL_CATCH_SIGNALS
rl_catch_signals = 0;
+#endif
#ifdef HAVE_RL_CATCH_SIGWINCH
rl_catch_sigwinch = 0;
#endif