[ruby/resolv] win32/resolv: add headers to GetNetworkParams check.

On 32-bit Cygwin at least, it was failing to find that function,
presumably due to it being stdcall.

Signed-off-by: Jeremy Drake <github@jdrake.com>

bceafef74b
This commit is contained in:
Jeremy Drake 2025-01-27 13:11:11 -08:00 committed by git
parent 549a326f86
commit c9346a166c

View file

@ -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")