diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-25 01:08:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-25 01:08:51 +0000 |
commit | 88a22cbcf25d2b85f6341c74bf19eca346da6efb (patch) | |
tree | 409c6daac1c2d97808ea8c4f0396691e483f7ade /ext | |
parent | 20da3e5152e2cd1bca4c63774a63caab8ef210c1 (diff) | |
download | ruby-88a22cbcf25d2b85f6341c74bf19eca346da6efb.tar.gz |
socket: system getaddrinfo on Windows
* ext/socket/extconf.rb: use system getaddrinfo, getnameinfo, and
freeaddrinfo on Windows if they are provided. they conflict
with addrinfo.h and cannot compile. conftest.exe linked against
msvcr90.dll segfaults when invoked in extconf.rb for unknown
reason, and failed to check them.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/extconf.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index a1c79502dd..247127b01d 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -566,6 +566,7 @@ EOS getaddr_info_ok = (:wide if getaddr_info_ok.nil?) if have_func("getnameinfo", headers) and have_func("getaddrinfo", headers) if CROSS_COMPILING || + $mingw || $mswin || checking_for("system getaddrinfo working") { try_run(cpp_include(headers) + GETADDRINFO_GETNAMEINFO_TEST) } |