Skip to content

Commit

Permalink
Use VERSION_CODE 190 instead of 191 so it works with 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Jun 3, 2009
1 parent 49d0a4d commit d9c9c1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/ebb_ffi.c
Expand Up @@ -3,7 +3,7 @@
* License. See README file for details.
*/
#include <ruby.h>
#if RUBY_VERSION_CODE < 191
#if RUBY_VERSION_CODE < 190
#include <rubyio.h>
#include <rubysig.h>
#else
Expand Down Expand Up @@ -434,11 +434,11 @@ server_listen_on_port(VALUE _, VALUE port)
static VALUE
server_process_connections(VALUE _)
{
#if RUBY_VERSION_CODE < 191
#if RUBY_VERSION_CODE < 190
TRAP_BEG;
#endif
ev_loop(loop, EVLOOP_ONESHOT);
#if RUBY_VERSION_CODE < 191
#if RUBY_VERSION_CODE < 190
TRAP_END;
#endif
return Qnil;
Expand Down

0 comments on commit d9c9c1e

Please sign in to comment.