diff options
Diffstat (limited to 'ext/stringio/extconf.rb')
| -rw-r--r-- | ext/stringio/extconf.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/stringio/extconf.rb b/ext/stringio/extconf.rb index a933159766..0089766983 100644 --- a/ext/stringio/extconf.rb +++ b/ext/stringio/extconf.rb @@ -1,4 +1,9 @@ # frozen_string_literal: false require 'mkmf' -have_func("rb_io_extract_modeenc", "ruby/io.h") -create_makefile('stringio') +if RUBY_ENGINE == 'ruby' + have_type("rb_io_mode_t", "ruby/io.h") + + create_makefile('stringio') +else + File.write('Makefile', dummy_makefile("").join) +end |
