diff --git a/ext/extconf.rb b/ext/extconf.rb index e8df320..0a8ef53 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -32,7 +32,7 @@ else exit 1 end -if have_func('rb_thread_blocking_region') and have_macro('RB_UBF_DFL', 'ruby.h') +if have_func('rb_thread_blocking_region') and have_macro('RUBY_UBF_IO', 'ruby.h') $CPPFLAGS << " -DHAVE_TBR" end