14 + |
14 + |
15 #if !defined( OPENLDAP_FD_SETSIZE ) && !defined( FD_SETSIZE ) |
15 #if !defined( OPENLDAP_FD_SETSIZE ) && !defined( FD_SETSIZE ) |
16 # define OPENLDAP_FD_SETSIZE 4096 |
16 # define OPENLDAP_FD_SETSIZE 4096 |
17 #endif |
17 #endif |
18 Index: include/ldap_int_thread.h |
18 Index: include/ldap_int_thread.h |
19 --- include/ldap_int_thread.h.orig 2008-02-12 00:26:40 +0100 |
19 --- include/ldap_int_thread.h.orig 2011-01-06 19:43:20.000000000 +0100 |
20 +++ include/ldap_int_thread.h 2008-10-13 11:38:23 +0200 |
20 +++ include/ldap_int_thread.h 2011-02-12 10:17:43.000000000 +0100 |
21 @@ -100,6 +100,7 @@ |
21 @@ -110,6 +110,7 @@ |
22 * * |
22 * * |
23 ***********************************/ |
23 ***********************************/ |
24 |
24 |
25 +#define _POSIX_PTHREAD_SEMANTICS |
25 +#define _POSIX_PTHREAD_SEMANTICS |
26 #define PTH_SYSCALL_SOFT 1 |
26 #define PTH_SYSCALL_SOFT 1 |
27 #include <pth.h> |
27 #include <pth.h> |
28 |
28 |
29 Index: libraries/libldap_r/tpool.c |
29 Index: libraries/libldap_r/tpool.c |
30 --- libraries/libldap_r/tpool.c.orig 2008-03-21 01:46:03 +0100 |
30 --- libraries/libldap_r/tpool.c.orig 2011-01-05 00:50:08.000000000 +0100 |
31 +++ libraries/libldap_r/tpool.c 2008-10-13 11:38:23 +0200 |
31 +++ libraries/libldap_r/tpool.c 2011-02-12 10:17:43.000000000 +0100 |
32 @@ -950,6 +950,6 @@ |
32 @@ -968,6 +968,6 @@ |
33 { |
33 { |
34 ldap_int_thread_userctx_t *ctx = vctx; |
34 ldap_int_thread_userctx_t *ctx = vctx; |
35 |
35 |
36 - return ctx->ltu_id; |
36 - return ctx->ltu_id; |
37 + return ctx != NULL ? ctx->ltu_id : 0; |
37 + return ctx != NULL ? ctx->ltu_id : 0; |
38 } |
38 } |
39 #endif /* LDAP_THREAD_HAVE_TPOOL */ |
39 #endif /* LDAP_THREAD_HAVE_TPOOL */ |
40 Index: servers/slapd/back-perl/config.c |
40 Index: servers/slapd/back-perl/config.c |
41 --- servers/slapd/back-perl/config.c.orig 2008-02-12 00:26:47 +0100 |
41 --- servers/slapd/back-perl/config.c.orig 2011-01-05 00:50:41.000000000 +0100 |
42 +++ servers/slapd/back-perl/config.c 2008-10-13 11:38:23 +0200 |
42 +++ servers/slapd/back-perl/config.c 2011-02-12 10:17:43.000000000 +0100 |
43 @@ -49,6 +49,9 @@ |
43 @@ -49,6 +49,9 @@ |
44 } |
44 } |
45 |
45 |
46 #ifdef PERL_IS_5_6 |
46 #ifdef PERL_IS_5_6 |
47 + if (argc > 2) |
47 + if (argc > 2) |