summaryrefslogtreecommitdiff
path: root/jni/ruby/ext/io/nonblock/extconf.rb
blob: aecdc16cea7f3fd912251470e97b65efdbf14360 (plain)
1
2
3
4
5
6
7
8
require 'mkmf'
target = "io/nonblock"

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