summaryrefslogtreecommitdiff
path: root/ext/socket/extconf.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-13 11:29:32 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-13 11:29:32 +0000
commitcb3fcdcdc3eeb4612c78d1fac10438214184642f (patch)
treee11b430371e7297b09e60f021bcc80016c4233b2 /ext/socket/extconf.rb
parentf1eadb0fb446418ac7b607a609cf19d9fd943f83 (diff)
* win32/win32.c, include/ruby/win32.h (getipaddrs): [experimental]
emulate getipaddrs(3) on Unix. * win32/Makefile.sub, configure.in (LIBS): need iphlpapi.lib for above function. * include/ruby/win32.h (socketpair): rb_w32_socketpair() doesn't substitute for any function, so use non-prefixed name. * ext/socket/extconf.rb (socketpair); follow above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r--ext/socket/extconf.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index f7470c0..a6a86b9 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -426,11 +426,6 @@ EOF
have_func("hsterror", headers)
have_func('getipnodebyname("", 0, 0, (int *)0)', headers) # RFC 2553
have_func('gethostbyname2("", 0)', headers) # RFC 2133
- if !have_func("socketpair(0, 0, 0, 0)", headers) and
- have_func("rb_w32_socketpair(0, 0, 0, 0)", headers)
- $defs << "-Dsocketpair(a,b,c,d)=rb_w32_socketpair((a),(b),(c),(d))"
- $defs << "-DHAVE_SOCKETPAIR"
- end
unless have_func("gethostname((char *)0, 0)", headers)
have_func("uname((struct utsname *)NULL)", headers)
end