You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by aa...@apache.org on 2005/02/05 10:42:47 UTC

svn commit: r151487 - apr/apr/trunk/configure.in

Author: aaron
Date: Sat Feb  5 01:42:46 2005
New Revision: 151487

URL: http://svn.apache.org/viewcvs?view=rev&rev=151487
Log:
Fix posix rwlock detection (on Darwin).

PTHREAD_RWLOCK_INITIALIZER is no longer part of the posix spec, according
to http://www.opengroup.org/onlinepubs/009695399/basedefs/pthread.h.html

Modified:
    apr/apr/trunk/configure.in

Modified: apr/apr/trunk/configure.in
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/configure.in?view=diff&r1=151486&r2=151487
==============================================================================
--- apr/apr/trunk/configure.in (original)
+++ apr/apr/trunk/configure.in Sat Feb  5 01:42:46 2005
@@ -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 <sys/types.h>
-#include <pthread.h>], [pthread_rwlock_t rwlock=PTHREAD_RWLOCK_INITIALIZER;],
+#include <pthread.h>], [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