ext/patron/extconf.rb in patron-0.4.20 vs ext/patron/extconf.rb in patron-0.5.0

- old
+ new

@@ -42,8 +42,10 @@ if CONFIG['CC'] =~ /gcc/ $CFLAGS << ' -pedantic -Wall' end $defs.push("-DUSE_TBR") -$defs.push("-DHAVE_TBR") if have_func('rb_thread_blocking_region') +$defs.push("-DHAVE_THREAD_H") if have_header('ruby/thread.h') +$defs.push("-DHAVE_TBR") if have_func('rb_thread_blocking_region', 'ruby.h') +$defs.push("-DHAVE_TCWOGVL") if have_header('ruby/thread.h') && have_func('rb_thread_call_without_gvl', 'ruby/thread.h') create_makefile 'patron/session_ext'