diff --git a/ldap/apr_ldap.c b/ldap/apr_ldap.c index a066b31a83..1e2fc82f6b 100644 --- a/ldap/apr_ldap.c +++ b/ldap/apr_ldap.c @@ -1782,6 +1782,7 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_poll(apr_pool_t *pool, +#if APR_HAS_OPENLDAP_LDAPSDK typedef struct apr_ldap_bind_ctx_t { apr_ldap_t *ld; @@ -1832,6 +1833,8 @@ static int bind_sasl_interact(LDAP *ld, unsigned flags, void *ctx, void *in) return LDAP_SUCCESS; } +#endif + /** * APR LDAP bind function