From: Howard Chu Date: Sat, 17 Sep 2005 00:55:50 +0000 (+0000) Subject: Add dummy reference to librewrite to force it to link X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~413 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61d96fa17c1288a0cebd69e0a18ce1516935ffbe;p=openldap Add dummy reference to librewrite to force it to link --- diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 335ae63843..d2d2facdad 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -1397,6 +1397,12 @@ int slap_sasl_regexp_config( const char *match, const char *replace ) "SASL match pattern %s could not be compiled by regexp engine\n", reg->sr_match, 0, 0 ); +#ifdef ENABLE_REWRITE + /* Dummy block to force symbol references in librewrite */ + if ( slapMode == ( SLAP_SERVER_MODE|SLAP_TOOL_MODE )) { + rewrite_info_init( 0 ); + } +#endif return( LDAP_OTHER ); }