From: Luke Howard Date: Sun, 5 Mar 2006 04:23:59 +0000 (+0000) Subject: Don't fail compile if LDAP_EXOP_X_TURN undefined (ie. if LDAP_REL_ENG undefined) X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~147 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5a5f5e1b26997e009e53e2e86541b3382ca98f4;p=openldap Don't fail compile if LDAP_EXOP_X_TURN undefined (ie. if LDAP_REL_ENG undefined) --- diff --git a/libraries/libldap/turn.c b/libraries/libldap/turn.c index 2ddd608805..bcda1cbf5d 100644 --- a/libraries/libldap/turn.c +++ b/libraries/libldap/turn.c @@ -42,6 +42,7 @@ ldap_turn( LDAPControl **cctrls, int *msgidp ) { +#ifdef LDAP_EXOP_X_TURN BerElement *turnvalber = NULL; struct berval *turnvalp = NULL; int rc; @@ -58,6 +59,9 @@ ldap_turn( turnvalp, sctrls, cctrls, msgidp ); ber_free( turnvalber, 1 ); return rc; +#else + return LDAP_CONTROL_NOT_FOUND; +#endif } int @@ -68,6 +72,7 @@ ldap_turn_s( LDAPControl **sctrls, LDAPControl **cctrls ) { +#ifdef LDAP_EXOP_X_TURN BerElement *turnvalber = NULL; struct berval *turnvalp = NULL; int rc; @@ -84,5 +89,8 @@ ldap_turn_s( turnvalp, sctrls, cctrls, NULL, NULL ); ber_free( turnvalber, 1 ); return rc; +#else + return LDAP_CONTROL_NOT_FOUND; +#endif }