From cvs-return-6097-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Tue Sep 14 20:56:35 2004 Return-Path: Delivered-To: apmail-apr-cvs-archive@www.apache.org Received: (qmail 91273 invoked from network); 14 Sep 2004 20:56:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Sep 2004 20:56:35 -0000 Received: (qmail 61911 invoked by uid 500); 14 Sep 2004 20:56:34 -0000 Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 61833 invoked by uid 500); 14 Sep 2004 20:56:33 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 61819 invoked by uid 99); 14 Sep 2004 20:56:33 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Date: 14 Sep 2004 20:56:32 -0000 Message-ID: <20040914205632.91240.qmail@minotaur.apache.org> From: jorton@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/build apr_hints.m4 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N jorton 2004/09/14 13:56:32 Modified: build Tag: APR_0_9_BRANCH apr_hints.m4 Log: * build/apr_hints.m4 (APR_PRELOAD): NetBSD fcntl() confounds O_NONBLOCK inheritance test, so work around it. Revision Changes Path No revision No revision 1.53.2.10 +4 -2 apr/build/apr_hints.m4 Index: apr_hints.m4 =================================================================== RCS file: /home/cvs/apr/build/apr_hints.m4,v retrieving revision 1.53.2.9 retrieving revision 1.53.2.10 diff -d -w -u -r1.53.2.9 -r1.53.2.10 --- apr_hints.m4 28 Aug 2004 16:18:34 -0000 1.53.2.9 +++ apr_hints.m4 14 Sep 2004 20:56:32 -0000 1.53.2.10 @@ -131,12 +131,14 @@ ;; *-openbsd*) APR_ADDTO(CPPFLAGS, [-D_POSIX_THREADS]) - # binding to an ephemeral port fails on OpenBSD so override - # the test for O_NONBLOCK inheritance across accept(). + # getsockname() reports the wrong address on a socket + # bound to an ephmeral port so the test fails. APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes]) ;; *-netbsd*) APR_ADDTO(CPPFLAGS, [-DNETBSD]) + # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950) + APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes]) ;; *-freebsd*) case $host in