diff options
| author | Jeremy Drake <github@jdrake.com> | 2025-01-27 13:11:11 -0800 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-08-13 22:13:53 +0000 |
| commit | c9346a166c29c3d90aeb052fa8ef3e07d000fdea (patch) | |
| tree | 4e809b8626047591f5f166ba0e8d0ad89a4abc78 | |
| parent | 549a326f86f345c4cea2de60fe179a5de18d53e2 (diff) | |
[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>
https://github.com/ruby/resolv/commit/bceafef74b
| -rw-r--r-- | ext/win32/resolv/extconf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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") |
