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: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-2.0 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 1/3] accept4: require SOCK_NONBLOCK/SOCK_CLOEXEC macros Date: Mon, 5 Mar 2012 23:47:06 +0000 Message-ID: <1330991226-21130-1-git-send-email-normalperson@yhbt.net> References: <20120305234508.GA15184@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: dough.gmane.org 1330991231 8039 80.91.229.3 (5 Mar 2012 23:47:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2012 23:47:11 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Tue Mar 06 00:47:10 2012 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org 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:93 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4hcU-0007VO-F1 for gclrkg-kgio@m.gmane.org; Tue, 06 Mar 2012 00:47:10 +0100 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 0738821CF02 for ; Mon, 5 Mar 2012 23:53:01 +0000 (UTC) The check for the accept4() function actually succeeds on a stock installation of Debian GNU/kFreeBSD 6.0, but the eglibc headers fail to define the necessary flags. --- ext/kgio/missing_accept4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/kgio/missing_accept4.h b/ext/kgio/missing_accept4.h index 2801b5d..3e9ec67 100644 --- a/ext/kgio/missing_accept4.h +++ b/ext/kgio/missing_accept4.h @@ -1,4 +1,4 @@ -#ifndef HAVE_ACCEPT4 +#if !defined(HAVE_ACCEPT4) || !defined(SOCK_CLOEXEC) || !defined(SOCK_NONBLOCK) # ifndef _GNU_SOURCE # define _GNU_SOURCE # endif -- 1.7.9.2.358.g22243