aboutsummaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-06-01 17:25:03 +0200
committerYang Tse <yangsita@gmail.com>2010-06-01 17:25:03 +0200
commit89da5324457070cb4a7391c48c6c4f84ed7fe964 (patch)
treed989117972a8aa3dd27f62c0ad7b63a7502187f0 /lib/version.c
parentb38189c7b41cc2a327ab690a523441bcb3e6f9fe (diff)
fix ldap related compilation issues
Diffstat (limited to 'lib/version.c')
-rw-r--r--lib/version.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/version.c b/lib/version.c
index d482bff1e..9a336a32d 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -170,9 +170,10 @@ static const char * const protocols[] = {
#if defined(USE_SSL) && !defined(CURL_DISABLE_IMAP)
"imaps",
#endif
-#if !defined(CURL_DISABLE_LDAP) || defined(USE_OPENLDAP)
+#ifndef CURL_DISABLE_LDAP
"ldap",
-#if defined(HAVE_LDAP_SSL) || (defined(USE_OPENLDAP) && defined(USE_SSL))
+#if (defined(USE_OPENLDAP) && defined(USE_SSL)) || \
+ (!defined(USE_OPENLDAP) && defined(HAVE_LDAP_SSL))
"ldaps",
#endif
#endif