mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
[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
This commit is contained in:
parent
549a326f86
commit
c9346a166c
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user