Skip to content

Commit

Permalink
Define EV_USE_IOURING if header is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jcmfernandes authored and ioquatix committed Dec 31, 2020
1 parent c4fc499 commit 9cecf14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/nio4r/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
have_header("unistd.h")

$defs << "-DEV_USE_LINUXAIO" if have_header("linux/aio_abi.h")
$defs << "-DEV_USE_IOURING" if have_header("linux/io_uring.h")
$defs << "-DEV_USE_SELECT" if have_header("sys/select.h")
$defs << "-DEV_USE_POLL" if have_type("port_event_t", "poll.h")
$defs << "-DEV_USE_EPOLL" if have_header("sys/epoll.h")
Expand Down

0 comments on commit 9cecf14

Please sign in to comment.