2005-10-26 17:08:13 +02:00
|
|
|
$NetBSD: patch-ac,v 1.9 2005/10/26 15:08:13 jlam Exp $
|
2003-01-19 10:26:33 +01:00
|
|
|
|
2005-10-26 17:08:13 +02:00
|
|
|
--- libraries/libldap_r/thr_posix.c.orig 2005-09-27 20:30:29.000000000 -0400
|
2004-07-24 05:32:24 +02:00
|
|
|
+++ libraries/libldap_r/thr_posix.c
|
2005-10-26 17:08:13 +02:00
|
|
|
@@ -132,9 +132,11 @@ ldap_pvt_thread_create( ldap_pvt_thread_
|
2005-08-01 11:49:37 +02:00
|
|
|
#endif
|
2003-01-19 10:26:33 +01:00
|
|
|
|
2005-08-01 11:49:37 +02:00
|
|
|
#ifdef LDAP_PVT_THREAD_SET_STACK_SIZE
|
2003-01-19 10:26:33 +01:00
|
|
|
+#if defined(_POSIX_THREAD_ATTR_STACKSIZE)
|
2005-08-01 11:49:37 +02:00
|
|
|
/* this should be tunable */
|
2003-01-19 10:26:33 +01:00
|
|
|
pthread_attr_setstacksize( &attr, LDAP_PVT_THREAD_STACK_SIZE );
|
2004-12-14 13:13:43 +01:00
|
|
|
#endif
|
2005-08-01 11:49:37 +02:00
|
|
|
+#endif
|
2003-01-19 10:26:33 +01:00
|
|
|
|
2003-09-18 07:37:15 +02:00
|
|
|
#if HAVE_PTHREADS > 5
|
2005-08-01 11:49:37 +02:00
|
|
|
detach = detach ? PTHREAD_CREATE_DETACHED : PTHREAD_CREATE_JOINABLE;
|