diff options
author | Yang Tse <yangsita@gmail.com> | 2010-06-01 17:25:03 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-06-01 17:25:03 +0200 |
commit | 89da5324457070cb4a7391c48c6c4f84ed7fe964 (patch) | |
tree | d989117972a8aa3dd27f62c0ad7b63a7502187f0 /lib/version.c | |
parent | b38189c7b41cc2a327ab690a523441bcb3e6f9fe (diff) |
fix ldap related compilation issues
Diffstat (limited to 'lib/version.c')
-rw-r--r-- | lib/version.c | 5 |
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 |