Skip to content

Commit 72f43d4

Browse files
authored
Merge pull request #719 from ngoto/support-solaris-10-missing-strnlen
Add support for Solaris 10 which lacks strnlen()
2 parents e1f6456 + 48d4bbc commit 72f43d4

File tree

3 files changed

+133
-116
lines changed

3 files changed

+133
-116
lines changed

ext/json/ext/parser/extconf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
have_func("rb_hash_new_capa", "ruby.h") # RUBY_VERSION >= 3.2
66
have_func("rb_hash_bulk_insert", "ruby.h") # Missing on TruffleRuby
77
have_func("rb_category_warn", "ruby.h") # Missing on TruffleRuby
8+
have_func("strnlen", "string.h") # Missing on Solaris 10
89

910
append_cflags("-std=c99")
1011

0 commit comments

Comments
 (0)