diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-05-12 05:38:58 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-05-12 05:38:58 +0000 |
commit | ce0b50e0a6aed669a59ee31ab3667b4eb34529de (patch) | |
tree | bba77b2c91f385eb2b17a8c29c6abe6d60bdc42f /ext | |
parent | 71f80afdbcb45245a01ee2c278ebda692587e92a (diff) | |
download | raindrops-ce0b50e0a6aed669a59ee31ab3667b4eb34529de.tar.gz |
This is exported (visibly) under Ruby 1.9.3 but not in headers, so it was causing warnings.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/raindrops/linux_inet_diag.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/raindrops/linux_inet_diag.c b/ext/raindrops/linux_inet_diag.c index e6d7366..89206bf 100644 --- a/ext/raindrops/linux_inet_diag.c +++ b/ext/raindrops/linux_inet_diag.c @@ -33,7 +33,9 @@ rb_thread_blocking_region( } #endif /* ! HAVE_RB_THREAD_BLOCKING_REGION */ -#ifndef HAVE_RB_THREAD_IO_BLOCKING_REGION +#ifdef HAVE_RB_THREAD_IO_BLOCKING_REGION +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 /* HAVE_RB_THREAD_IO_BLOCKING_REGION */ |