From 73e29d2cf100c19854721dac2441f45846c98779 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 15 Feb 2016 04:23:15 +0000 Subject: [PATCH] win32/resolv.rb: invert the condition * ext/win32/lib/win32/resolv.rb: invert the condition to return immediately in the future. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/win32/lib/win32/resolv.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/win32/lib/win32/resolv.rb b/ext/win32/lib/win32/resolv.rb index 8dc9e0d88b..271084b65b 100644 --- a/ext/win32/lib/win32/resolv.rb +++ b/ext/win32/lib/win32/resolv.rb @@ -44,7 +44,10 @@ nt = Module.new do 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 end end end -else - require_relative 'resolv9x' end end