summaryrefslogtreecommitdiff
path: root/databases/openldap/patches/patch-ac
blob: 82c3150209b827a55492a901a0a7b100c10a9f46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ac,v 1.7 2004/12/14 12:13:43 wiz 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