summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-08 03:59:10 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-08 03:59:10 +0000
commit2470d7811fcd2d19e0075e171b2ffc106ddd9d91 (patch)
tree18c9ee21ed074cbaaf88be71cc49e7fb262a9be1 /ext/socket/extconf.rb
parentf2747b578245160fd900af7cdd828360ec7939a5 (diff)
* ext/socket/extconf.rb: forgotten to define HAVE_SOCKETPAIR for
windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index ba180c8..2e308fe 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -485,6 +485,7 @@ if have_func(test_func)
have_func("getipnodebyname") or have_func("gethostbyname2")
if !have_func("socketpair(0, 0, 0, 0)") and have_func("rb_w32_socketpair(0, 0, 0, 0)")
$defs << "-Dsocketpair(a,b,c,d)=rb_w32_socketpair((a),(b),(c),(d))"
+ $defs << "-DHAVE_SOCKETPAIR"
end
unless have_func("gethostname((char *)0, 0)")
have_func("uname")