Skip to content

Commit

Permalink
Use rb_enable_interrupt only when available (fixes eventmachine#248, e…
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Feb 28, 2013
1 parent 016800f commit 3992b90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ext/em.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ See the file COPYING for complete licensing information.

#if defined(HAVE_RBTRAP)
#include <rubysig.h>
#elif defined(HAVE_RB_THREAD_CHECK_INTS)
#elif defined(HAVE_RB_ENABLE_INTERRUPT)
extern "C" {
void rb_enable_interrupt(void);
void rb_disable_interrupt(void);
Expand Down
1 change: 1 addition & 0 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def manual_ssl_config
add_define "HAVE_OLD_INOTIFY" if !inotify && have_macro('__NR_inotify_init', 'sys/syscall.h')
add_define 'HAVE_WRITEV' if have_func('writev', 'sys/uio.h')

have_func('rb_enable_interrupt')
have_func('rb_thread_check_ints')
have_func('rb_time_new')

Expand Down

0 comments on commit 3992b90

Please sign in to comment.