From 4f84779cb671dd11ec06dcd47247668fc6ba536c Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Wed, 27 Dec 2017 07:06:29 -0800 Subject: [PATCH] ext/nio4r/extconf.rb: check for port_event_t in port.h (fixes #178) "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) --- ext/nio4r/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/nio4r/extconf.rb b/ext/nio4r/extconf.rb index 31a5a85..5daec99 100644 --- a/ext/nio4r/extconf.rb +++ b/ext/nio4r/extconf.rb @@ -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")