Sha256: 6ea27df7757250a6b6a783f535a21dd88cf0fe539f4cbe93d598932f47f65ade
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
require 'mkmf' Dir.glob('./lib/**/*.rb') do |f| $INSTALLFILES << [f, '$(RUBYLIBDIR)', 'lib'] end 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"]) 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 create_makefile('termios') end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-termios-1.0.2 | ext/extconf.rb |
ruby-termios-1.0.1 | ext/extconf.rb |