Permalink
Browse files

Merge pull request #11 from mortonfox/master

Guard two more calls to rb_thread_blocking_region.
  • Loading branch information...
2 parents 3548374 + c89ab45 commit 1d681b3b6238ad830ff4404370c5bf57aecd758d @oldmoe committed Oct 2, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/mysql.c
View
@@ -907,7 +907,7 @@ static VALUE query(VALUE obj, VALUE sql)
rb_raise(eMysql, "query: not connected");
}
if (rb_block_given_p()) {
- #ifdef RUBY_VM
+ #if defined RUBY_VM && defined HAVE_TBR
args.m = m;
args.data = RSTRING_PTR(sql);
args.len = RSTRING_LEN(sql);
@@ -937,7 +937,7 @@ static VALUE query(VALUE obj, VALUE sql)
return obj;
}
- #ifdef RUBY_VM
+ #if defined RUBY_VM && defined HAVE_TBR
args.m = m;
args.data = RSTRING_PTR(sql);
args.len = RSTRING_LEN(sql);

0 comments on commit 1d681b3

Please sign in to comment.