diff --git a/ext/win32/resolv/extconf.rb b/ext/win32/resolv/extconf.rb index 4afbf8a..a5f8cc2 100644 --- a/ext/win32/resolv/extconf.rb +++ b/ext/win32/resolv/extconf.rb @@ -1,5 +1,5 @@ require 'mkmf' -if RUBY_ENGINE == "ruby" and have_library('iphlpapi', 'GetNetworkParams') +if RUBY_ENGINE == "ruby" and have_library('iphlpapi', 'GetNetworkParams', ['windows.h', 'iphlpapi.h']) create_makefile('win32/resolv') else File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")