apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aa...@apache.org
Subject svn commit: r151487 - apr/apr/trunk/configure.in
Date Sat, 05 Feb 2005 09:42:47 GMT
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



Mime
View raw message