Skip to content

Commit

Permalink
A workaround for JRuby to check for the target OS (Fix #69)
Browse files Browse the repository at this point in the history
Instead of checking for the existence of the necessary function.  On
JRuby no C compiler is available and this call results in a runtime
error.
  • Loading branch information
nobu committed Dec 10, 2024
1 parent 77911d9 commit 4fca0ca
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 /cygwin|mingw|mswin/ =~ RbConfig::CONFIG['target_os']
create_makefile('win32/resolv')
else
File.write('Makefile', "all clean install:\n\t@echo Done: $(@)\n")
Expand Down

0 comments on commit 4fca0ca

Please sign in to comment.