Skip to content

Commit

Permalink
keep BUILD_FOR_RUBY compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Feb 10, 2015
1 parent e6efc78 commit 50ee6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/em.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ See the file COPYING for complete licensing information.
#define RSTRING_LENINT(str) RSTRING_LEN(str)
#endif
#else
#define EmSelect rb_fd_select
#define EmSelect select
#endif

#ifndef rb_fd_max
#if defined(BUILD_FOR_RUBY) && !defined(rb_fd_max)
#define fd_check(n) (((n) < FD_SETSIZE) ? 1 : 0*fprintf(stderr, "fd %d too large for select\n", (n)))
// These definitions are cribbed from include/ruby/intern.h in Ruby 1.9.3,
// with this change: any macros that read or write the nth element of an
Expand Down

0 comments on commit 50ee6d9

Please sign in to comment.