summaryrefslogtreecommitdiff
path: root/databases/openldap/patches/patch-ac
blob: 1bc0bc4b5f593f05a0d97fe1ad204e2bc49a9f68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ac,v 1.5 2004/07/24 03:32:24 jlam Exp $

--- libraries/libldap_r/thr_posix.c.orig	Thu Jan  1 13:16:30 2004
+++ libraries/libldap_r/thr_posix.c
@@ -112,7 +112,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
 
 #if HAVE_PTHREADS > 5