diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-07-14 17:32:10 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-07-14 17:32:10 -0700 |
commit | 8baed92a7c02adcc913bcc7760b77a240b529c63 (patch) | |
tree | 0a5f111764fe92eab4a55c6fe85a5716583291cc | |
parent | 823f41d0f86dda497c166a839d8215275f5d48a0 (diff) | |
download | kgio-8baed92a7c02adcc913bcc7760b77a240b529c63.tar.gz |
It's no in the public headers, but Ruby 1.9.3 will have it and it's still superior to rb_thread_blocking_region() even though it's not ideal.
-rw-r--r-- | ext/kgio/blocking_io_region.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/kgio/blocking_io_region.h b/ext/kgio/blocking_io_region.h index c872b53..30c7106 100644 --- a/ext/kgio/blocking_io_region.h +++ b/ext/kgio/blocking_io_region.h @@ -1,5 +1,8 @@ #ifdef HAVE_RB_THREAD_BLOCKING_REGION -# ifndef HAVE_RB_THREAD_IO_BLOCKING_REGION +# ifdef HAVE_RB_THREAD_IO_BLOCKING_REGION +/* temporary API for Ruby 1.9.3 */ +VALUE rb_thread_io_blocking_region(rb_blocking_function_t *, void *, int); +# else # define rb_thread_io_blocking_region(fn,data,fd) \ rb_thread_blocking_region((fn),(data),RUBY_UBF_IO,0) # endif |