summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
authorMarc Alexander Lehmann <libev@schmorp.de>2019-06-23 02:02:24 +0000
committerMarc Alexander Lehmann <libev@schmorp.de>2019-06-23 02:02:24 +0000
commit2ed18eef2025a218598624f1c3c4dbd6d3602e07 (patch)
tree5aee6c40bd10518ef21b4d232e2cae8b3c36dd5f /ev.c
parentfdae2327bed6b99f516f7fc6fc680a242165879c (diff)
downloadlibev-2ed18eef2025a218598624f1c3c4dbd6d3602e07.tar.gz
libev-2ed18eef2025a218598624f1c3c4dbd6d3602e07.zip
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ev.c b/ev.c
index df78183..58a0c0f 100644
--- a/ev.c
+++ b/ev.c
@@ -400,10 +400,6 @@
# define EV_USE_POLL 0
#endif
-#if EV_USE_LINUXAIO
-# include <linux/aio_abi.h> /* probably only needed for aio_context_t */
-#endif
-
/* on linux, we can use a (slow) syscall to avoid a dependency on pthread, */
/* which makes programs even slower. might work on other unices, too. */
#if EV_USE_CLOCK_SYSCALL
@@ -444,7 +440,7 @@
#if EV_USE_LINUXAIO
# include <sys/syscall.h>
-# if !SYS_io_getevents
+# if !SYS_io_getevents || !EV_USE_EPOLL
# undef EV_USE_LINUXAIO
# define EV_USE_LINUXAIO 0
# endif
@@ -1609,6 +1605,10 @@ static EV_ATOMIC_T have_monotonic; /* did clock_gettime (CLOCK_MONOTONIC) work?
/*****************************************************************************/
+#if EV_USE_LINUXAIO
+# include <linux/aio_abi.h> /* probably only needed for aio_context_t */
+#endif
+
/* define a suitable floor function (only used by periodics atm) */
#if EV_USE_FLOOR
@@ -2735,12 +2735,12 @@ childcb (EV_P_ ev_signal *sw, int revents)
#if EV_USE_KQUEUE
# include "ev_kqueue.c"
#endif
-#if EV_USE_LINUXAIO
-# include "ev_linuxaio.c"
-#endif
#if EV_USE_EPOLL
# include "ev_epoll.c"
#endif
+#if EV_USE_LINUXAIO
+# include "ev_linuxaio.c"
+#endif
#if EV_USE_POLL
# include "ev_poll.c"
#endif