aboutsummaryrefslogtreecommitdiff
path: root/devel/apr1
diff options
context:
space:
mode:
authorSergey Skvortsov <skv@FreeBSD.org>2011-06-19 10:27:12 +0000
committerSergey Skvortsov <skv@FreeBSD.org>2011-06-19 10:27:12 +0000
commit0ede1a9316465daa4813a8710ce544e6860e7644 (patch)
tree3bbbcaf9a0f812dff2e132aed07149ca90a7fb8f /devel/apr1
parent84c743c90280f777541b766914a539f8d34b7001 (diff)
downloadports-0ede1a9316465daa4813a8710ce544e6860e7644.tar.gz
ports-0ede1a9316465daa4813a8710ce544e6860e7644.zip
Notes
Diffstat (limited to 'devel/apr1')
-rw-r--r--devel/apr1/files/patch-apr_ldap_rebind.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/apr1/files/patch-apr_ldap_rebind.c b/devel/apr1/files/patch-apr_ldap_rebind.c
new file mode 100644
index 000000000000..e7c9cd2a17d7
--- /dev/null
+++ b/devel/apr1/files/patch-apr_ldap_rebind.c
@@ -0,0 +1,15 @@
+--- apr-util-1.3.12/ldap/apr_ldap_rebind.c.orig 2011-06-18 14:42:15.000000000 +0000
++++ apr-util-1.3.12/ldap/apr_ldap_rebind.c 2011-06-18 14:42:28.000000000 +0000
+@@ -81,11 +81,11 @@
+ get_apd
+ #endif
+
++#if APR_HAS_THREADS
+ /* run after apr_thread_mutex_create cleanup */
+ apr_pool_cleanup_register(pool, &apr_ldap_xref_lock, apr_ldap_pool_cleanup_set_null,
+ apr_pool_cleanup_null);
+
+-#if APR_HAS_THREADS
+ if (apr_ldap_xref_lock == NULL) {
+ retcode = apr_thread_mutex_create(&apr_ldap_xref_lock, APR_THREAD_MUTEX_DEFAULT, pool);
+ }