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.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/stringio/extconf.rb b/ext/stringio/extconf.rb
index 553732f79c..0089766983 100644
--- a/ext/stringio/extconf.rb
+++ b/ext/stringio/extconf.rb
@@ -1,6 +1,8 @@
# frozen_string_literal: false
require 'mkmf'
if RUBY_ENGINE == 'ruby'
+ have_type("rb_io_mode_t", "ruby/io.h")
+
create_makefile('stringio')
else
File.write('Makefile', dummy_makefile("").join)