summaryrefslogtreecommitdiff
path: root/ext/json/parser
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-07-01 17:38:25 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-07-01 20:28:47 +0900
commit9d080765cc3c6266521863ffe5882ba8d8322271 (patch)
treec09c41ca0736ead79da3e94599eaa9622e4a25f5 /ext/json/parser
parentae605b652da0933ae10aa7d40107b0234afd11ac (diff)
[ruby/json] Run `have_func` with the header providing the declarations
https://github.com/ruby/json/commit/95fb084027
Diffstat (limited to 'ext/json/parser')
-rw-r--r--ext/json/parser/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/parser/extconf.rb b/ext/json/parser/extconf.rb
index 84049a7fe4..de5d5758b4 100644
--- a/ext/json/parser/extconf.rb
+++ b/ext/json/parser/extconf.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
require 'mkmf'
-have_func("rb_enc_interned_str", "ruby.h") # RUBY_VERSION >= 3.0
+have_func("rb_enc_interned_str", "ruby/encoding.h") # RUBY_VERSION >= 3.0
have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
have_func("rb_hash_bulk_insert", "ruby.h") # Missing on TruffleRuby
have_func("strnlen", "string.h") # Missing on Solaris 10