From: Eric Wong <normalperson@yhbt.net> To: raindrops@librelist.org Subject: [PATCH 2/2] linux_inet_diag: fix Ruby 2.2 (dev) build Date: Tue, 18 Feb 2014 06:55:47 +0000 [thread overview] Message-ID: <1392706547-7978-2-git-send-email-normalperson@yhbt.net> (raw) In-Reply-To: <1392706547-7978-1-git-send-email-normalperson@yhbt.net> Do not define or use rb_thread_blocking_region if rb_thread_io_blocking_region is available. rb_thread_blocking_region is gone entirely in Ruby trunk. --- ext/raindrops/linux_inet_diag.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/raindrops/linux_inet_diag.c b/ext/raindrops/linux_inet_diag.c index 7b5bae1..e4d0fab 100644 --- a/ext/raindrops/linux_inet_diag.c +++ b/ext/raindrops/linux_inet_diag.c @@ -13,7 +13,8 @@ #endif /* partial emulation of the 1.9 rb_thread_blocking_region under 1.8 */ -#ifndef HAVE_RB_THREAD_BLOCKING_REGION +#if !defined(HAVE_RB_THREAD_BLOCKING_REGION) && \ + !defined(HAVE_RB_THREAD_IO_BLOCKING_REGION) # include <rubysig.h> # define RUBY_UBF_IO ((rb_unblock_function_t *)-1) typedef void rb_unblock_function_t(void *); -- 1.9.0.rc3.13.gda73b5f
prev parent reply other threads:[~2014-02-18 6:56 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-02-18 6:55 [PATCH 1/2] raindrops.gemspec: add wrongdoc dev dependency Eric Wong 2014-02-18 6:55 ` Eric Wong [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://yhbt.net/raindrops/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1392706547-7978-2-git-send-email-normalperson@yhbt.net \ --to=normalperson@yhbt.net \ --cc=raindrops@librelist.org \ --subject='Re: [PATCH 2/2] linux_inet_diag: fix Ruby 2.2 (dev) build' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: ../../raindrops.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).