[前][次][番号順一覧][スレッド一覧]

ruby-changes:47299

From: nobu <ko1@a...>
Date: Tue, 25 Jul 2017 10:08:56 +0900 (JST)
Subject: [ruby-changes:47299] nobu:r59414 (trunk): socket: system getaddrinfo on Windows

nobu	2017-07-25 10:08:51 +0900 (Tue, 25 Jul 2017)

  New Revision: 59414

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59414

  Log:
    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.

  Modified files:
    trunk/ext/socket/extconf.rb
Index: ext/socket/extconf.rb
===================================================================
--- ext/socket/extconf.rb	(revision 59413)
+++ ext/socket/extconf.rb	(revision 59414)
@@ -566,6 +566,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/ext/socket/extconf.rb#L566
     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)
          }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]