1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/io/wait/extconf.rb
nobu 85aa73835e * ext/io/wait/extconf.rb: removed unnecessary backward compatibility stuff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-07-24 02:22:32 +00:00

12 lines
326 B
Ruby

require 'mkmf'
target = "io/wait"
unless /djgpp|mswin|mingw|human/ =~ RUBY_PLATFORM
fionread = %w[sys/ioctl.h sys/filio.h].find do |h|
checking_for("FIONREAD") {macro_defined?("FIONREAD", "#include <#{h}>\n")}
end
if fionread
$defs << "-DFIONREAD_HEADER=\"<#{fionread}>\""
create_makefile(target)
end
end