Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 19432 invoked from network); 29 Jan 2005 00:20:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Jan 2005 00:20:51 -0000 Received: (qmail 73711 invoked by uid 500); 29 Jan 2005 00:20:50 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 73672 invoked by uid 500); 29 Jan 2005 00:20:50 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 73659 invoked by uid 99); 29 Jan 2005 00:20:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO mailhost.clove.org) (209.237.227.244) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 28 Jan 2005 16:20:49 -0800 Received: (qmail 21322 invoked by uid 98); 29 Jan 2005 00:20:47 -0000 Received: from aaron@clove.org by grover.clove.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. spamassassin: 2.63. Clear:RC:1(64.81.61.244):. Processed in 0.013298 secs); 29 Jan 2005 00:20:47 -0000 X-Qmail-Scanner-Mail-From: aaron@clove.org via grover.clove.org X-Qmail-Scanner: 1.20 (Clear:RC:1(64.81.61.244):. Processed in 0.013298 secs) Received: from unknown (HELO ?10.0.1.2?) (aaron@64.81.61.244) by clove.org with (RC4-SHA encrypted) SMTP; 29 Jan 2005 00:20:47 -0000 Mime-Version: 1.0 (Apple Message framework v619) Content-Transfer-Encoding: 7bit Message-Id: <9A9AB272-718B-11D9-B511-000D9345110E@clove.org> Content-Type: text/plain; charset=US-ASCII; format=flowed To: dev@apr.apache.org From: Aaron Bannert Subject: [patch] fix configure detection of rwlocks on darwin Date: Fri, 28 Jan 2005 16:20:39 -0800 X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a patch against the trunk that re-enables rwlock support in APR on Mac OS X (Darwin). Apparently the PTHREAD_RWLOCK_INITIALIZER is no longer part of the posix spec[1], and so it was completely removed from the pthread.h header on darwin. Since APR doesn't ever do static initialization of rwlock variables, this isn't a problem for us except that now our autoconf detection is broken. I'm posting this instead of just committing it because I want to make sure it's not going to screw anyone else up, and also because I think it needs to be backported (which I'm volunteering to do after some +1s). [1] http://www.opengroup.org/onlinepubs/009695399/basedefs/pthread.h.html -aaron Index: configure.in =================================================================== --- configure.in (revision 148958) +++ configure.in (working copy) @@ -603,7 +603,7 @@ dnl ----------------------------- Checking for pthread_rwlock_t AC_CACHE_CHECK([for pthread_rwlock_t], [apr_cv_type_rwlock_t], AC_TRY_COMPILE([#include -#include ], [pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER;], +#include ], [pthread_rwlock_t *rwlock;], [apr_cv_type_rwlock_t=yes], [apr_cv_type_rwlock_t=no], [apr_cv_type_rwlock_t=no])) if test "$apr_cv_type_rwlock_t" = "yes"; then