diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2005-02-21 00:47:18 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2005-02-21 00:47:18 +0000 |
commit | dd02d86f2f77738cf3d011f76e35080f1fd0a1f7 (patch) | |
tree | 5b9e22eb41319735462dcfdac4485667450f1772 | |
parent | 5102a0a5a0e448d89739e73768244c3d4d913e63 (diff) | |
download | libapr-dd02d86f2f77738cf3d011f76e35080f1fd0a1f7.tar.gz |
Fix detection of rwlocks on Mac OS X.
Submitted by: Aaron Bannert
Reviewed by: Joe Orton, Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@154587 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,7 @@ Changes with APR 0.9.7 + *) Fix detection of rwlocks on Mac OS X. [Aaron Bannert] + Changes with APR 0.9.6 *) Add apr_threadattr_stacksize_set() for overriding the default diff --git a/configure.in b/configure.in index f5849200d..5bd6d55c9 100644 --- a/configure.in +++ b/configure.in @@ -539,7 +539,7 @@ else dnl special things are defined. 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], [AC_TRY_COMPILE([#define _XOPEN_SOURCE 500 #define _BSD_SOURCE |