Skip to content

Commit

Permalink
linuxaio is actually only supported on linux kernel 4.19+
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmfernandes authored and ioquatix committed Dec 31, 2020
1 parent 9cecf14 commit de5e5f9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ext/libev/ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -3141,13 +3141,13 @@ ev_supported_backends (void) EV_NOEXCEPT
{
unsigned int flags = 0;

if (EV_USE_PORT ) flags |= EVBACKEND_PORT;
if (EV_USE_KQUEUE ) flags |= EVBACKEND_KQUEUE;
if (EV_USE_EPOLL ) flags |= EVBACKEND_EPOLL;
if (EV_USE_LINUXAIO ) flags |= EVBACKEND_LINUXAIO;
if (EV_USE_IOURING && ev_linux_version () >= 0x050601) flags |= EVBACKEND_IOURING; /* 5.6.1+ */
if (EV_USE_POLL ) flags |= EVBACKEND_POLL;
if (EV_USE_SELECT ) flags |= EVBACKEND_SELECT;
if (EV_USE_PORT ) flags |= EVBACKEND_PORT;
if (EV_USE_KQUEUE ) flags |= EVBACKEND_KQUEUE;
if (EV_USE_EPOLL ) flags |= EVBACKEND_EPOLL;
if (EV_USE_LINUXAIO && ev_linux_version () >= 0x041300) flags |= EVBACKEND_LINUXAIO; /* 4.19+ */
if (EV_USE_IOURING && ev_linux_version () >= 0x050601 ) flags |= EVBACKEND_IOURING; /* 5.6.1+ */
if (EV_USE_POLL ) flags |= EVBACKEND_POLL;
if (EV_USE_SELECT ) flags |= EVBACKEND_SELECT;

return flags;
}
Expand Down

0 comments on commit de5e5f9

Please sign in to comment.