From cb3fcdcdc3eeb4612c78d1fac10438214184642f Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 13 May 2013 11:29:32 +0000 Subject: * 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 --- ext/socket/extconf.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ext/socket') diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index f7470c06dc..a6a86b967a 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 -- cgit v1.2.3