summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-12-10 15:50:55 +0900
committergit <[email protected]>2024-12-10 09:29:38 +0000
commitaf9a904f387d2b6b7ab2ade446b408ecd364aa53 (patch)
treea3277ce9b435b6c5130557fbbb0b2db948a64cb0
parentfea83a4b80cebd9f6636261641225815d6fdab48 (diff)
[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
-rw-r--r--ext/win32/resolv/extconf.rb2
1 files changed, 1 insertions, 1 deletions
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")