Sha256: 3332ea9d11056acdb9dcbaed4060af7003e01e779321dfe44d5b60ac919c1fa8

Contents?: true

Size: 351 Bytes

Versions: 2

Compression:

Stored size: 351 Bytes

Contents

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

unless RUBY_ENGINE == 'ruby'
  File.write("Makefile", dummy_makefile($srcdir).join(""))
  return
end

have_func("rb_io_descriptor")

hdr = %w"fcntl.h"
if have_macro("O_NONBLOCK", hdr) and
    (have_macro("F_GETFL", hdr) or have_macro("F_SETFL", hdr))
  create_makefile(target)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
io-nonblock-0.3.1 ext/io/nonblock/extconf.rb
io-nonblock-0.3.0 ext/io/nonblock/extconf.rb