diff options
author | skrll <skrll> | 2003-01-19 09:26:33 +0000 |
---|---|---|
committer | skrll <skrll> | 2003-01-19 09:26:33 +0000 |
commit | 429aa425073ca049bf2c74c8ffa0cac0d99c118b (patch) | |
tree | 8eb3f932db4f28f18ae52cdf04f327496db528fa /databases | |
parent | 1a3b54eb5cb40d627ffe3650c1ff450f1d95e8cf (diff) | |
download | pkgsrc-429aa425073ca049bf2c74c8ffa0cac0d99c118b.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')
-rw-r--r-- | databases/openldap/Makefile | 3 | ||||
-rw-r--r-- | databases/openldap/distinfo | 3 | ||||
-rw-r--r-- | databases/openldap/patches/patch-ac | 14 |
3 files changed, 18 insertions, 2 deletions
diff --git a/databases/openldap/Makefile b/databases/openldap/Makefile index a15213f47c3..18906d136e7 100644 --- a/databases/openldap/Makefile +++ b/databases/openldap/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.49 2002/10/17 10:02:53 bouyer Exp $ +# $NetBSD: Makefile,v 1.50 2003/01/19 09:26:33 skrll Exp $ DISTNAME= openldap-2.0.27 +PKGREVISION= 1 SVR4_PKGNAME= oldap CATEGORIES= databases MASTER_SITES= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ diff --git a/databases/openldap/distinfo b/databases/openldap/distinfo index 77cf401788b..4a26d85d7a1 100644 --- a/databases/openldap/distinfo +++ b/databases/openldap/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.14 2002/09/23 10:06:58 kleink Exp $ +$NetBSD: distinfo,v 1.15 2003/01/19 09:26:33 skrll Exp $ SHA1 (openldap-2.0.27.tgz) = 6867890ed0a0a07d022290fa4b3429de50e1d0f3 Size (openldap-2.0.27.tgz) = 1305050 bytes SHA1 (patch-aa) = 8577dfc802eda5e789aa7e66ff9bd9cbb1ca1777 SHA1 (patch-ab) = f2b00ef942da01fda134ac37086f59d371efa152 +SHA1 (patch-ac) = 5398e8be071859c59062ec8735ada11799aa5dd9 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 ); |