* ext/socket/extconf.rb: mswin/mingw ruby has socketpair(), but it's
not exist as such name in ruby static library, so mkmf.rb cannot find it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
59af57e257
commit
61086883b6
@ -1,3 +1,9 @@
|
|||||||
|
Wed May 19 19:58:01 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/socket/extconf.rb: mswin/mingw ruby has socketpair(), but it's
|
||||||
|
not exist as such name in ruby static library, so mkmf.rb cannot
|
||||||
|
find it.
|
||||||
|
|
||||||
Wed May 19 19:45:10 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
Wed May 19 19:45:10 2010 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
* iseq_compile_each (NODE_DEFINED): put nil first to fix stack
|
* iseq_compile_each (NODE_DEFINED): put nil first to fix stack
|
||||||
|
@ -4,6 +4,7 @@ case RUBY_PLATFORM
|
|||||||
when /(ms|bcc)win32|mingw/
|
when /(ms|bcc)win32|mingw/
|
||||||
test_func = "WSACleanup"
|
test_func = "WSACleanup"
|
||||||
have_library("ws2_32", "WSACleanup")
|
have_library("ws2_32", "WSACleanup")
|
||||||
|
$defs << "-DHAVE_SOCKETPAIR"
|
||||||
when /cygwin/
|
when /cygwin/
|
||||||
test_func = "socket"
|
test_func = "socket"
|
||||||
when /beos/
|
when /beos/
|
||||||
@ -348,7 +349,7 @@ $distcleanfiles << "constants.h" << "constdefs.*"
|
|||||||
if have_func(test_func)
|
if have_func(test_func)
|
||||||
have_func("hsterror")
|
have_func("hsterror")
|
||||||
have_func("getipnodebyname") or have_func("gethostbyname2")
|
have_func("getipnodebyname") or have_func("gethostbyname2")
|
||||||
have_func("socketpair")
|
have_func("socketpair") unless $defs.include?("-DHAVE_SOCKETPAIR")
|
||||||
unless have_func("gethostname")
|
unless have_func("gethostname")
|
||||||
have_func("uname")
|
have_func("uname")
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user