From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: normalperson@yhbt.net Received: from zedshaw2.xen.prgmr.com (zedshaw2.xen.prgmr.com [71.19.156.177]) by dcvr.yhbt.net (Postfix) with ESMTP id 55F7263381A for ; Sun, 28 Dec 2014 02:28:10 +0000 (UTC) Received: from zedshaw2.xen.prgmr.com (unknown [IPv6:::1]) by zedshaw2.xen.prgmr.com (Postfix) with ESMTP id EA6F374F8F for ; Sun, 28 Dec 2014 02:28:42 +0000 (UTC) MIME-Version: 1.0 Date: Sun, 28 Dec 2014 02:27:54 +0000 From: Eric Wong In-Reply-To: <1419733675-6323-1-git-send-email-normalperson@yhbt.net> List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Message-Id: <1419733675-6323-1-git-send-email-normalperson@yhbt.net> Precedence: list References: <1419733675-6323-1-git-send-email-normalperson@yhbt.net> Sender: sleepy.penguin@librelist.com Subject: [sleepy.penguin] [PATCH] extconf: detect inotify_init1 in libc To: sleepy.penguin@librelist.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Many systems have inotify_init1 nowadays, so use inotify_init1 if it is available to avoid unnecessary syscalls. --- ext/sleepy_penguin/extconf.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/sleepy_penguin/extconf.rb b/ext/sleepy_penguin/extconf.rb index 407c947..eda7fcd 100644 --- a/ext/sleepy_penguin/extconf.rb +++ b/ext/sleepy_penguin/extconf.rb @@ -20,6 +20,7 @@ end have_type('clockid_t', 'time.h') have_func('clock_gettime', 'time.h') have_func('epoll_create1', %w(sys/epoll.h)) +have_func('inotify_init1', %w(sys/inotify.h)) have_func('rb_thread_call_without_gvl') have_func('rb_thread_blocking_region') have_func('rb_thread_io_blocking_region') -- EW