Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/ext/em.h b/ext/em.h
- index 008fa7d..82397bc 100644
- --- a/ext/em.h
- +++ b/ext/em.h
- @@ -37,8 +37,13 @@ See the file COPYING for complete licensing information.
- #ifdef HAVE_RBTRAP
- #include <rubysig.h>
- #else
- - #define TRAP_BEG
- - #define TRAP_END
- + extern "C" {
- + void rb_enable_interrupt(void);
- + void rb_disable_interrupt(void);
- + }
- +
- + #define TRAP_BEG rb_enable_interrupt()
- + #define TRAP_END do { rb_disable_interrupt(); rb_thread_check_ints(); } while(0)
- #endif
- // 1.9.0 compat
Add Comment
Please, Sign In to add comment