summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--ext/socket/extconf.rb4
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index efc4976..e82caf0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue May 7 12:09:29 2013 Tanaka Akira <akr@fsij.org>
+
+ * 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.
+
Tue May 7 12:07:35 2013 Tanaka Akira <akr@fsij.org>
* pack.c (swap32): Don't redefine it if it is already defined.
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