summaryrefslogtreecommitdiff
path: root/databases/openldap/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'databases/openldap/patches/patch-ac')
-rw-r--r--databases/openldap/patches/patch-ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/databases/openldap/patches/patch-ac b/databases/openldap/patches/patch-ac
new file mode 100644
index 00000000000..1536493a961
--- /dev/null
+++ b/databases/openldap/patches/patch-ac
@@ -0,0 +1,14 @@
+$NetBSD: patch-ac,v 1.3 2003/01/19 09:26:33 skrll Exp $
+
+--- libraries/libldap_r/thr_posix.c.orig Fri Jan 4 20:38:23 2002
++++ libraries/libldap_r/thr_posix.c
+@@ -103,7 +103,9 @@ ldap_pvt_thread_create( ldap_pvt_thread_
+
+ #if defined(LDAP_PVT_THREAD_STACK_SIZE) && LDAP_PVT_THREAD_STACK_SIZE > 0
+ /* this should be tunable */
++#if defined(_POSIX_THREAD_ATTR_STACKSIZE)
+ pthread_attr_setstacksize( &attr, LDAP_PVT_THREAD_STACK_SIZE );
++#endif
+ #endif
+
+ rtn = pthread_create( thread, &attr, start_routine, arg );