4 unless macro_defined?("DOSISH", "#include <ruby.h>")
5 have_header(ioctl_h = "sys/ioctl.h") or ioctl_h = nil
6 fionread = %w[sys/ioctl.h sys/filio.h sys/socket.h].find do |h|
7 have_macro("FIONREAD", [h, ioctl_h].compact)
10 $defs << "-DFIONREAD_HEADER=\"<#{fionread}>\""
11 create_makefile(target)
14 if have_func("rb_w32_ioctlsocket", "ruby.h")
15 have_func("rb_w32_is_socket", "ruby.h")
16 create_makefile(target)