ruby-changes:41756
From: nobu <ko1@a...>
Date: Mon, 15 Feb 2016 13:22:54 +0900 (JST)
Subject: [ruby-changes:41756] nobu:r53830 (trunk): win32/resolv.rb: invert the condition
nobu 2016-02-15 13:23:15 +0900 (Mon, 15 Feb 2016) New Revision: 53830 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53830 Log: win32/resolv.rb: invert the condition * ext/win32/lib/win32/resolv.rb: invert the condition to return immediately in the future. Modified files: trunk/ext/win32/lib/win32/resolv.rb Index: ext/win32/lib/win32/resolv.rb =================================================================== --- ext/win32/lib/win32/resolv.rb (revision 53829) +++ ext/win32/lib/win32/resolv.rb (revision 53830) @@ -44,7 +44,10 @@ nt = Module.new do https://github.com/ruby/ruby/blob/trunk/ext/win32/lib/win32/resolv.rb#L44 getv.call(info) break info.unpack('V5')[4] == 2 # VER_PLATFORM_WIN32_NT end -if nt +if not nt + require_relative 'resolv9x' + # return # does not work yet +else #==================================================================== # Windows NT #==================================================================== @@ -124,7 +127,5 @@ if nt https://github.com/ruby/ruby/blob/trunk/ext/win32/lib/win32/resolv.rb#L127 end end end -else - require_relative 'resolv9x' end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/