Skip to content

Commit

Permalink
Add support for Solaris 10 which lacks strnlen()
Browse files Browse the repository at this point in the history
Check for existence of strnlen() and use alternative code if it is missing.
  • Loading branch information
Naohisa Goto committed Dec 18, 2024
1 parent e1f6456 commit 48d4bbc
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 116 deletions.
1 change: 1 addition & 0 deletions ext/json/ext/parser/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
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("rb_category_warn", "ruby.h") # Missing on TruffleRuby
have_func("strnlen", "string.h") # Missing on Solaris 10

append_cflags("-std=c99")

Expand Down
Loading

0 comments on commit 48d4bbc

Please sign in to comment.