summaryrefslogtreecommitdiff
path: root/ext/io/nonblock/extconf.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-14 12:53:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-14 12:53:23 +0000
commitc749e4fca225cd00f5be15f6fe6e4538a6c29413 (patch)
treee2e0a04f2ae9a00e205c4d08a44b0823bd6937a2 /ext/io/nonblock/extconf.rb
parent6a3931e0f630f56d4acd2b232f58c0225f03f52b (diff)
* ext/io/nonblock: moved from ext/io/wait/lib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/nonblock/extconf.rb')
-rw-r--r--ext/io/nonblock/extconf.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/io/nonblock/extconf.rb b/ext/io/nonblock/extconf.rb
new file mode 100644
index 0000000000..aecdc16cea
--- /dev/null
+++ b/ext/io/nonblock/extconf.rb
@@ -0,0 +1,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