ext/extconf.rb in ruby-termios-1.0.2 vs ext/extconf.rb in ruby-termios-1.1.0
- old
+ new
@@ -7,17 +7,21 @@
if have_header('termios.h') &&
have_header('unistd.h')
have_header('sys/ioctl.h')
if RUBY_VERSION >= '1.7'
- have_header('ruby/io.h')
- if have_type("rb_io_t", ["ruby.h", "rubyio.h"])
- have_struct_member("rb_io_t", "fd", ["ruby.h", "rubyio.h"])
+ if have_header('ruby/io.h')
+ have_type("rb_io_t", ["ruby/io.h"])
+ have_struct_member("rb_io_t", "fd", ["ruby/io.h"])
else
- have_struct_member("OpenFile", "fd", ["ruby.h", "rubyio.h"])
- end
- if have_macro("OpenFile", ["ruby.h", "rubyio.h"])
- $defs.push("-DHAVE_MACRO_OPENFILE")
+ if have_type("rb_io_t", ["ruby.h", "rubyio.h"])
+ have_struct_member("rb_io_t", "fd", ["ruby.h", "rubyio.h"])
+ else
+ have_struct_member("OpenFile", "fd", ["ruby.h", "rubyio.h"])
+ end
+ if have_macro("OpenFile", ["ruby.h", "rubyio.h"])
+ $defs.push("-DHAVE_MACRO_OPENFILE")
+ end
end
end
create_makefile('termios')
end