From da9732a76615a63be3dafea2a561eb53a6b04a21 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 3 Jun 2005 21:52:54 +0000 Subject: [PATCH] fix -ULDAP_DEVEL compile --- servers/slapd/back-ldap/chain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index 47cc33e975..05593fa5cb 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -740,6 +740,7 @@ chain_cfadd( Operation *op, SlapReply *rs, Entry *p, ConfigArgs *ca ) return 0; } +#ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR static slap_verbmasks chaining_mode[] = { { BER_BVC("referralsRequired"), LDAP_REFERRALS_REQUIRED }, { BER_BVC("referralsPreferred"), LDAP_REFERRALS_PREFERRED }, @@ -747,6 +748,7 @@ static slap_verbmasks chaining_mode[] = { { BER_BVC("chainingPreferred"), LDAP_CHAINING_PREFERRED }, { BER_BVNULL, 0 } }; +#endif static int chain_cf_gen( ConfigArgs *c ) @@ -1288,9 +1290,9 @@ static slap_overinst ldapchain; int chain_init( void ) { -#ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR int rc; +#ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR rc = register_supported_control( LDAP_CONTROL_X_CHAINING_BEHAVIOR, /* SLAP_CTRL_GLOBAL| */ SLAP_CTRL_ACCESS|SLAP_CTRL_HIDE, NULL, ldap_chain_parse_ctrl, &sc_chainingBehavior ); -- 2.39.5