diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-10 06:35:05 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-08-10 06:35:05 +0000 |
commit | 008a4c8d8b5df6bb217f686185274dfd538a9ce0 (patch) | |
tree | f916830c952960ce4e749b49f1855c49ba22aa0c /ext/win32/lib | |
parent | 3db023defe656dad6768cfb0311e53c8d098dcfd (diff) | |
download | ruby-008a4c8d8b5df6bb217f686185274dfd538a9ce0.tar.gz |
win32/resolv: fix for cygwin
* ext/win32/resolv/resolv.c: needs windows.h for iphlpapi.h on
cygwin. [ruby-core:76791] [Bug #12663]
* ext/win32/resolv/resolv.c (w32error_make_error): use
Win32::Resolv::Error, an alias of Win32::Registry::Error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/win32/lib')
-rw-r--r-- | ext/win32/lib/win32/resolv.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/win32/lib/win32/resolv.rb b/ext/win32/lib/win32/resolv.rb index 6990941845..647f1446fc 100644 --- a/ext/win32/lib/win32/resolv.rb +++ b/ext/win32/lib/win32/resolv.rb @@ -9,6 +9,7 @@ require 'win32/registry' module Win32 module Resolv API = Registry::API + Error = Registry::Error def self.get_hosts_path path = get_hosts_dir |