Sha256: 122193cd0869f5872c2837748187d10990ef676ec8f126ab31df223c12282843

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

require 'mkmf'

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

3 entries across 3 versions & 2 rubygems

Version Path
arika-ruby-termios-0.9.5 extconf.rb
arika-ruby-termios-0.9.6 extconf.rb
ruby-termios-0.9.6 extconf.rb