aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_ldap.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/curl_ldap.h')
-rw-r--r--lib/curl_ldap.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/curl_ldap.h b/lib/curl_ldap.h
index 3cce4bf7b..4cd13cfd2 100644
--- a/lib/curl_ldap.h
+++ b/lib/curl_ldap.h
@@ -25,8 +25,9 @@
#ifndef CURL_DISABLE_LDAP
extern const struct Curl_handler Curl_handler_ldap;
-#if (defined(USE_OPENLDAP) && defined(USE_SSL)) || \
- (!defined(USE_OPENLDAP) && defined(HAVE_LDAP_SSL))
+#if !defined(CURL_DISABLE_LDAPS) && \
+ ((defined(USE_OPENLDAP) && defined(USE_SSL)) || \
+ (!defined(USE_OPENLDAP) && defined(HAVE_LDAP_SSL)))
extern const struct Curl_handler Curl_handler_ldaps;
#endif