diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-17 04:47:38 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-17 04:47:38 +0000 |
| commit | fcdb68b3694d94b4bd506dff6ffd192c83141f18 (patch) | |
| tree | da7d6c20afd116c1fe583b8d0acf800239d55ae3 /ext/io/wait/extconf.rb | |
| parent | 3913a117690584dda4e433903a1da70a2fd4f0ac (diff) | |
| download | ruby-fcdb68b3694d94b4bd506dff6ffd192c83141f18.tar.gz ruby-fcdb68b3694d94b4bd506dff6ffd192c83141f18.tar.xz ruby-fcdb68b3694d94b4bd506dff6ffd192c83141f18.zip | |
* ext/io/wait/extconf.rb, ext/io/wait/wait.c: Win32 platforms support.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/wait/extconf.rb')
| -rw-r--r-- | ext/io/wait/extconf.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/io/wait/extconf.rb b/ext/io/wait/extconf.rb index ea7dc9f6c..1352ef202 100644 --- a/ext/io/wait/extconf.rb +++ b/ext/io/wait/extconf.rb @@ -3,10 +3,15 @@ target = "io/wait" unless macro_defined?("DOSISH", "#include <ruby.h>") fionread = %w[sys/ioctl.h sys/filio.h].find do |h| - checking_for("FIONREAD") {macro_defined?("FIONREAD", "#include <#{h}>\n")} + checking_for("FIONREAD") {have_macro("FIONREAD", h)} 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 |
