Skip to content

Commit

Permalink
Merge pull request #719 from ngoto/support-solaris-10-missing-strnlen
Browse files Browse the repository at this point in the history
Add support for Solaris 10 which lacks strnlen()
  • Loading branch information
byroot authored Dec 18, 2024
2 parents e1f6456 + 48d4bbc commit 72f43d4
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 72f43d4

Please sign in to comment.