From c9346a166c29c3d90aeb052fa8ef3e07d000fdea Mon Sep 17 00:00:00 2001 From: Jeremy Drake Date: Mon, 27 Jan 2025 13:11:11 -0800 Subject: [PATCH] [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 https://github.com/ruby/resolv/commit/bceafef74b --- ext/win32/resolv/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/win32/resolv/extconf.rb b/ext/win32/resolv/extconf.rb index 4afbf8a4f6..a5f8cc279d 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")