Permalink
Browse files

Use rb_enable_interrupt only when available (fixes #248, #389)

  • Loading branch information...
tmm1 committed Feb 28, 2013
1 parent 016800f commit 3992b90ec596461dbd5c3c7a325687af1b75c47c
Showing with 2 additions and 1 deletion.
  1. +1 −1 ext/em.h
  2. +1 −0 ext/extconf.rb
View
@@ -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);
View
@@ -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')

0 comments on commit 3992b90

Please sign in to comment.