From af9a904f387d2b6b7ab2ade446b408ecd364aa53 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 10 Dec 2024 15:50:55 +0900 Subject: [PATCH] [ruby/resolv] Build the extension library only when CRuby (Fix https://github.com/ruby/resolv/pull/69) On JRuby no C compiler is available and this call results in a runtime error. https://github.com/ruby/resolv/commit/33105bc504 --- ext/win32/resolv/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/win32/resolv/extconf.rb b/ext/win32/resolv/extconf.rb index ac865ec5e1..4afbf8a4f6 100644 --- a/ext/win32/resolv/extconf.rb +++ b/ext/win32/resolv/extconf.rb @@ -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")