diff -r 2dd48c9debd6 -r e10b124b2f21 openldap/openldap.patch --- a/openldap/openldap.patch Tue Aug 28 18:42:10 2012 +0200 +++ b/openldap/openldap.patch Sat Feb 04 20:20:10 2012 +0200 @@ -1,6 +1,6 @@ Index: include/ac/fdset.h ---- include/ac/fdset.h.orig 2011-01-05 00:49:56.000000000 +0100 -+++ include/ac/fdset.h 2011-02-12 10:17:43.000000000 +0100 +--- include/ac/fdset.h.orig 2011-11-25 19:52:29.000000000 +0100 ++++ include/ac/fdset.h 2011-12-11 14:01:59.000000000 +0100 @@ -22,6 +22,13 @@ #ifndef _AC_FDSET_H #define _AC_FDSET_H @@ -16,8 +16,8 @@ # define OPENLDAP_FD_SETSIZE 4096 #endif Index: include/ldap_int_thread.h ---- include/ldap_int_thread.h.orig 2011-01-06 19:43:20.000000000 +0100 -+++ include/ldap_int_thread.h 2011-02-12 10:17:43.000000000 +0100 +--- include/ldap_int_thread.h.orig 2011-11-25 19:52:29.000000000 +0100 ++++ include/ldap_int_thread.h 2011-12-11 14:01:59.000000000 +0100 @@ -110,6 +110,7 @@ * * ***********************************/ @@ -27,9 +27,9 @@ #include Index: libraries/libldap_r/tpool.c ---- libraries/libldap_r/tpool.c.orig 2011-01-05 00:50:08.000000000 +0100 -+++ libraries/libldap_r/tpool.c 2011-02-12 10:17:43.000000000 +0100 -@@ -968,6 +968,6 @@ +--- libraries/libldap_r/tpool.c.orig 2011-11-25 19:52:29.000000000 +0100 ++++ libraries/libldap_r/tpool.c 2011-12-11 14:01:59.000000000 +0100 +@@ -1019,6 +1019,6 @@ { ldap_int_thread_userctx_t *ctx = vctx; @@ -37,16 +37,32 @@ + return ctx != NULL ? ctx->ltu_id : 0; } #endif /* LDAP_THREAD_HAVE_TPOOL */ +Index: libraries/libmdb/mdb.c +--- libraries/libmdb/mdb.c.orig 2011-11-25 19:52:29.000000000 +0100 ++++ libraries/libmdb/mdb.c 2011-12-11 14:01:59.000000000 +0100 +@@ -213,7 +213,11 @@ + * Otherwise compile with the less efficient -DMDB_DSYNC=O_SYNC. + */ + #ifndef MDB_DSYNC +-# define MDB_DSYNC O_DSYNC ++# ifdef O_DSYNC ++# define MDB_DSYNC O_DSYNC ++# else ++# define MDB_DSYNC O_SYNC ++# endif + #endif + #endif + Index: servers/slapd/back-perl/config.c ---- servers/slapd/back-perl/config.c.orig 2011-01-05 00:50:41.000000000 +0100 -+++ servers/slapd/back-perl/config.c 2011-02-12 10:17:43.000000000 +0100 -@@ -49,6 +49,9 @@ - } +--- servers/slapd/back-perl/config.c.orig 2011-11-25 19:52:29.000000000 +0100 ++++ servers/slapd/back-perl/config.c 2011-12-11 14:02:56.000000000 +0100 +@@ -173,6 +173,9 @@ + } else { + switch( c->type ) { + case PERL_MODULE: ++ if (c->argc > 2) ++ snprintf( eval_str, EVAL_BUF_SIZE, "require \"%s\";", c->argv[2] ); ++ else + snprintf( eval_str, EVAL_BUF_SIZE, "use %s;", c->argv[1] ); + eval_pv( eval_str, 0 ); - #ifdef PERL_IS_5_6 -+ if (argc > 2) -+ snprintf( eval_str, EVAL_BUF_SIZE, "require \"%s\";", argv[2] ); -+ else - snprintf( eval_str, EVAL_BUF_SIZE, "use %s;", argv[1] ); - eval_pv( eval_str, 0 ); -