Skip to content

Commit

Permalink
ext/nio4r/extconf.rb: check for port_event_t in port.h (fixes #178)
Browse files Browse the repository at this point in the history
"port.h" is a pretty generic name, and apparently has caused nio4r to
fail to build in practice.

Before trying to use it, make sure it contains the types we expect (for
Solaris I/O completion ports)
  • Loading branch information
tarcieri committed Dec 27, 2017
1 parent 4f03564 commit 4f84779
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 4f84779

Please sign in to comment.