ext/pitchfork_http/epollexclusive.h in pitchfork-0.12.0 vs ext/pitchfork_http/epollexclusive.h in pitchfork-0.13.0
- old
+ new
@@ -9,14 +9,15 @@
* support SIGKILL timeouts and parent death detection.
*/
#if defined(HAVE_EPOLL_CREATE1)
# include <sys/epoll.h>
# include <errno.h>
-# include <ruby/io.h>
# include <ruby/thread.h>
#endif /* __linux__ */
+#include <ruby/io.h>
+
#if defined(EPOLLEXCLUSIVE) && defined(HAVE_EPOLL_CREATE1)
# define USE_EPOLL (1)
#else
# define USE_EPOLL (0)
#endif
@@ -48,10 +49,9 @@
Check_Type(readers, T_ARRAY);
for (i = 0; i < RARRAY_LEN(readers); i++) {
int rc;
struct epoll_event e;
- rb_io_t *fptr;
VALUE io = rb_ary_entry(readers, i);
e.data.u64 = i; /* the reason readers shouldn't change */
/*