about summary refs log tree commit diff
path: root/evloop/evloop.h
diff options
context:
space:
mode:
Diffstat (limited to 'evloop/evloop.h')
-rw-r--r--evloop/evloop.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/evloop/evloop.h b/evloop/evloop.h
index 44f8803..28b4572 100644
--- a/evloop/evloop.h
+++ b/evloop/evloop.h
@@ -19,7 +19,12 @@ struct fdev {
     void *arg;
     int fd;
     uint16_t flags;
+#ifdef EVLOOP_EPOLL
     int16_t index;
+#else
+    int16_t rdidx;
+    int16_t wridx;
+#endif
 };
 
 #elif defined(EVLOOP_POLL)