From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS47066 71.19.144.0/20 X-Spam-Status: No, score=-1.9 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: [PATCH] avoid deprecated rb_thread_blocking_region on MRI 2.x Date: Sat, 15 Feb 2014 08:25:04 +0000 Message-ID: <20140215082504.GA12998@dcvr.yhbt.net> References: <20140215082504.GA12998@dcvr.yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1392452718 29069 80.91.229.3 (15 Feb 2014 08:25:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2014 08:25:18 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Sat Feb 15 09:25:26 2014 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org In-Reply-To: <20140215082504.GA12998@dcvr.yhbt.net> List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:269 Archived-At: Received: from zedshaw2.xen.prgmr.com ([71.19.156.177]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WEaYw-0008E4-8c for gclrkg-kgio@m.gmane.org; Sat, 15 Feb 2014 09:25:26 +0100 Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id 3A22B7501E for ; Sat, 15 Feb 2014 08:34:25 +0000 (UTC) We've finally figured out how to avoid warnings when building on C Ruby 2.x --- ext/kgio/kgio.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/kgio/kgio.h b/ext/kgio/kgio.h index 66a8705..7c992fb 100644 --- a/ext/kgio/kgio.h +++ b/ext/kgio/kgio.h @@ -39,8 +39,7 @@ void kgio_autopush_send(VALUE); VALUE kgio_call_wait_writable(VALUE io); VALUE kgio_call_wait_readable(VALUE io); -#if defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL) && \ - !defined(HAVE_RB_THREAD_BLOCKING_REGION) +#if defined(HAVE_RB_THREAD_CALL_WITHOUT_GVL) && defined(HAVE_RUBY_THREAD_H) # define KGIO_WITHOUT_GVL(fn,data1,ubf,data2) \ rb_thread_call_without_gvl((fn),(data1),(ubf),(data2)) #elif defined(HAVE_RB_THREAD_BLOCKING_REGION) -- Eric Wong