From bcf61f58d518308658de1c208703bfdd7f79d1c7 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 26 Oct 2008 09:11:40 +0000 Subject: * ext/io/wait/{extconf.rb,wait.c}: needs sys/ioctl.h for fcntl on cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/io/wait/extconf.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/io/wait/extconf.rb') diff --git a/ext/io/wait/extconf.rb b/ext/io/wait/extconf.rb index 1a0edbd846..eed3543124 100644 --- a/ext/io/wait/extconf.rb +++ b/ext/io/wait/extconf.rb @@ -2,8 +2,9 @@ require 'mkmf' target = "io/wait" unless macro_defined?("DOSISH", "#include ") + have_header(ioctl_h = "sys/ioctl.h") or ioctl_h = nil fionread = %w[sys/ioctl.h sys/filio.h sys/socket.h].find do |h| - have_macro("FIONREAD", h) + have_macro("FIONREAD", [h, ioctl_h].compact) end if fionread $defs << "-DFIONREAD_HEADER=\"<#{fionread}>\"" -- cgit v1.2.3