summaryrefslogtreecommitdiff
path: root/ext/stringio/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/stringio/extconf.rb')
-rw-r--r--ext/stringio/extconf.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/stringio/extconf.rb b/ext/stringio/extconf.rb
index 8fc84b3735..0089766983 100644
--- a/ext/stringio/extconf.rb
+++ b/ext/stringio/extconf.rb
@@ -1,2 +1,9 @@
+# frozen_string_literal: false
require 'mkmf'
-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