Sha256: c583aa9e2e18b0d3d85831ee77c89bde624cff47d6b667ecac62c0e6631984bd

Contents?: true

Size: 553 Bytes

Versions: 3

Compression:

Stored size: 553 Bytes

Contents

# frozen_string_literal: false
require 'mkmf'
target = "io/wait"

have_func("rb_io_wait")
unless macro_defined?("DOSISH", "#include <ruby.h>")
  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, ioctl_h].compact)
  end
  if fionread
    $defs << "-DFIONREAD_HEADER=\"<#{fionread}>\""
    create_makefile(target)
  end
else
  if have_func("rb_w32_ioctlsocket", "ruby.h")
    have_func("rb_w32_is_socket", "ruby.h")
    create_makefile(target)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/io-wait-0.2.1/ext/io/wait/extconf.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/io-wait-0.2.1/ext/io/wait/extconf.rb
io-wait-0.2.1 ext/io/wait/extconf.rb