--- libev/ev.c 2019/06/20 23:14:53 1.491 +++ libev/ev.c 2019/06/22 16:25:53 1.492 @@ -327,7 +327,11 @@ #endif #ifndef EV_USE_LINUXAIO -# define EV_USE_LINUXAIO 0 +# if __linux /* libev currently assumes linux/aio_abi.h is always available on linux */ +# define EV_USE_LINUXAIO 1 +# else +# define EV_USE_LINUXAIO 0 +# endif #endif #ifndef EV_USE_INOTIFY