From e5a5f5e1b26997e009e53e2e86541b3382ca98f4 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 5 Mar 2006 04:23:59 +0000 Subject: [PATCH] Don't fail compile if LDAP_EXOP_X_TURN undefined (ie. if LDAP_REL_ENG undefined) --- libraries/libldap/turn.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 } -- 2.39.5