Skip to content

Commit

Permalink
Merge pull request #180 from socketry/better-port-h-check
Browse files Browse the repository at this point in the history
ext/nio4r/extconf.rb: check for port_event_t in port.h (fixes #178)
  • Loading branch information
tarcieri committed Dec 27, 2017
2 parents 4f03564 + 4f84779 commit 28c01c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/nio4r/extconf.rb
Expand Up @@ -14,7 +14,7 @@

$defs << "-DEV_USE_SELECT" if have_header("sys/select.h")

$defs << "-DEV_USE_POLL" if have_header("poll.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 28c01c1

Please sign in to comment.