Skip to content

Commit bceafef

Browse files
committed
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>
1 parent a70341b commit bceafef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/win32/resolv/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require 'mkmf'
2-
if RUBY_ENGINE == "ruby" and have_library('iphlpapi', 'GetNetworkParams')
2+
if RUBY_ENGINE == "ruby" and have_library('iphlpapi', 'GetNetworkParams', ['windows.h', 'iphlpapi.h'])
33
create_makefile('win32/resolv')
44
else
55
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")

0 commit comments

Comments
 (0)