]> git.sur5r.net Git - openldap/commitdiff
Don't fail compile if LDAP_EXOP_X_TURN undefined (ie. if LDAP_REL_ENG undefined)
authorLuke Howard <lukeh@openldap.org>
Sun, 5 Mar 2006 04:23:59 +0000 (04:23 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 5 Mar 2006 04:23:59 +0000 (04:23 +0000)
libraries/libldap/turn.c

index 2ddd608805c63f0268899014d71c92fa88f3d538..bcda1cbf5dd689d9f9b253f65fb194ffaff3efd5 100644 (file)
@@ -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
 }