summaryrefslogtreecommitdiff
path: root/databases/openldap/patches
diff options
context:
space:
mode:
authorskrll <skrll@pkgsrc.org>2003-01-19 09:26:33 +0000
committerskrll <skrll@pkgsrc.org>2003-01-19 09:26:33 +0000
commit4d96f87202c40fb2be99cf7733398c5ea752a046 (patch)
tree8eb3f932db4f28f18ae52cdf04f327496db528fa /databases/openldap/patches
parent77d346bae461e8525afb7b513bf6f0bb19f5660f (diff)
downloadpkgsrc-4d96f87202c40fb2be99cf7733398c5ea752a046.tar.gz
Don't use pthread_attr_setstacksize unless _POSIX_THREAD_ATTR_STACKSIZE
is defined. This lets openldap compile on -current. Fixes PR 19921. PKGREVISION++
Diffstat (limited to 'databases/openldap/patches')
-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 );