summaryrefslogtreecommitdiff
path: root/databases/openldap/patches
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2004-12-14 09:08:37 +0000
committeradam <adam@pkgsrc.org>2004-12-14 09:08:37 +0000
commit484e7843e77cc66e509c652c69cb34bbaffb5532 (patch)
tree1af091fce276fb52c6e1ce48188e5dca8dfe816c /databases/openldap/patches
parent1abe55a88feeb52a746f44f80da8b47a1c366ac7 (diff)
downloadpkgsrc-484e7843e77cc66e509c652c69cb34bbaffb5532.tar.gz
Fixed building on NetBSD 2.0 and -current
Diffstat (limited to 'databases/openldap/patches')
-rw-r--r--databases/openldap/patches/patch-ac19
1 files changed, 15 insertions, 4 deletions
diff --git a/databases/openldap/patches/patch-ac b/databases/openldap/patches/patch-ac
index 1bc0bc4b5f5..c23aa4d9cc4 100644
--- a/databases/openldap/patches/patch-ac
+++ b/databases/openldap/patches/patch-ac
@@ -1,14 +1,25 @@
-$NetBSD: patch-ac,v 1.5 2004/07/24 03:32:24 jlam Exp $
+$NetBSD: patch-ac,v 1.6 2004/12/14 09:08:37 adam Exp $
---- libraries/libldap_r/thr_posix.c.orig Thu Jan 1 13:16:30 2004
+--- libraries/libldap_r/thr_posix.c.orig 2004-01-01 18:16:30.000000000 +0000
+++ libraries/libldap_r/thr_posix.c
-@@ -112,7 +112,9 @@ ldap_pvt_thread_create( ldap_pvt_thread_
+@@ -112,8 +112,10 @@ 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
++#endif
#if HAVE_PTHREADS > 5
+ detach = detach ? PTHREAD_CREATE_DETACHED : PTHREAD_CREATE_JOINABLE;
+@@ -190,7 +192,8 @@ ldap_pvt_thread_yield( void )
+ return thr_yield();
+
+ #elif HAVE_PTHREADS == 10
+- return sched_yield();
++ sched_yield();
++ return 0;
+
+ #elif defined(_POSIX_THREAD_IS_GNU_PTH)
+ sched_yield();