summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-07 03:10:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-07 03:10:46 +0000
commit301821bd458421218e9f8c33af53a9870f5c628a (patch)
tree2f59dfcee7c026c723e46831fae20f355bf682e6 /ext/socket/extconf.rb
parentf4fd77903f35e91410deba44a92a141419c850d7 (diff)
* ext/socket/extconf.rb: Set close_fds false for Cygwin.
Cygwin doesn't support fd passing. This enables socket extension library cross-compilable by default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 66fb06d..29e401a 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -253,6 +253,10 @@ def test_recvmsg_with_msg_peek_creates_fds(headers)
# [ruby-dev:44189]
# http://bugs.ruby-lang.org/issues/5075
close_fds = false
+ when /cygwin/
+ # Cygwin doesn't support fd passing.
+ # http://cygwin.com/ml/cygwin/2003-09/msg01808.html
+ close_fds = false
else
close_fds = nil
end