From 833ad92d1852efb40f6f7fafa5bc5e784e0e49ea Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 10 Aug 2016 06:35:05 +0000 Subject: 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 --- ext/win32/resolv/extconf.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/win32/resolv') diff --git a/ext/win32/resolv/extconf.rb b/ext/win32/resolv/extconf.rb index 2ae4bb29f7..01f3df730a 100644 --- a/ext/win32/resolv/extconf.rb +++ b/ext/win32/resolv/extconf.rb @@ -1 +1,3 @@ -create_makefile('win32/resolv') +if have_library('iphlpapi', 'GetNetworkParams') + create_makefile('win32/resolv') +end -- cgit v1.2.3