1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
yugui 2009-07-17 15:26:30 +00:00
parent 229b4e4c37
commit 37859b5227
3 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,10 @@
Sat Jul 18 00:23:47 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* 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.
Fri Jul 17 22:37:22 2009 NAKAMURA Usaku <usa@ruby-lang.org> Fri Jul 17 22:37:22 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/socket.c (socket_s_ip_address_list): drop inactive * ext/socket/socket.c (socket_s_ip_address_list): drop inactive

View file

@ -66,6 +66,7 @@ have_readline_var("rl_point")
# workaround for native windows. # workaround for native windows.
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_event_hook") /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_sigwinch")
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_signals")
have_readline_func("rl_cleanup_after_signal") have_readline_func("rl_cleanup_after_signal")
have_readline_func("rl_clear_signals") have_readline_func("rl_clear_signals")
have_readline_func("rl_set_screen_size") have_readline_func("rl_set_screen_size")

View file

@ -1451,7 +1451,9 @@ Init_readline()
#elif defined HAVE_RL_EVENT_HOOK #elif defined HAVE_RL_EVENT_HOOK
rl_event_hook = readline_event; rl_event_hook = readline_event;
#endif #endif
#ifdef HAVE_RL_CATCH_SIGNALS
rl_catch_signals = 0; rl_catch_signals = 0;
#endif
#ifdef HAVE_RL_CATCH_SIGWINCH #ifdef HAVE_RL_CATCH_SIGWINCH
rl_catch_sigwinch = 0; rl_catch_sigwinch = 0;
#endif #endif