mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00

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
6 lines
230 B
Ruby
6 lines
230 B
Ruby
require 'mkmf'
|
|
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")
|
|
end
|