mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 05:29:10 +02: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>
bceafef74b
This commit is contained in:
parent
549a326f86
commit
c9346a166c
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
require 'mkmf'
|
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')
|
create_makefile('win32/resolv')
|
||||||
else
|
else
|
||||||
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
|
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue