From: Pierangelo Masarati Date: Wed, 14 Apr 2004 23:17:57 +0000 (+0000) Subject: enable use of librewrite for sasl-regexp only if librewrite is compiled (ITS#3084) X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e46e44c34dfb6fb5e591cf78cef58073081b432f;p=openldap enable use of librewrite for sasl-regexp only if librewrite is compiled (ITS#3084) --- diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index bd4f74b92a..b580224958 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -2363,6 +2363,11 @@ typedef int (SLAP_CTRL_PARSE_FN) LDAP_P(( #define SLMALLOC_SLAB_SIZE (1024*1024) +#if defined(LDAP_DEVEL) && defined(ENABLE_REWRITE) +/* use librewrite for sasl-regexp */ +#define SLAP_SASL_REWRITE 1 +#endif /* LDAP_DEVEL && ENABLE_REWRITE */ + LDAP_END_DECL #include "proto-slap.h"