Skip to content

Commit

Permalink
[ruby/resolv] Build the extension library only when CRuby (Fix
Browse files Browse the repository at this point in the history
ruby/resolv#69)

On JRuby no C compiler is available and this call results in a runtime
error.

ruby/resolv@33105bc504
  • Loading branch information
nobu authored and matzbot committed Dec 10, 2024
1 parent fea83a4 commit af9a904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/win32/resolv/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'mkmf'
if have_library('iphlpapi', 'GetNetworkParams')
if RUBY_ENGINE == "ruby" and have_library('iphlpapi', 'GetNetworkParams')
create_makefile('win32/resolv')
else
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
Expand Down

0 comments on commit af9a904

Please sign in to comment.