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/curl_ldap.h | |
parent | b38189c7b41cc2a327ab690a523441bcb3e6f9fe (diff) |
fix ldap related compilation issues
Diffstat (limited to 'lib/curl_ldap.h')
-rw-r--r-- | lib/curl_ldap.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/curl_ldap.h b/lib/curl_ldap.h index a2b167fa0..3cce4bf7b 100644 --- a/lib/curl_ldap.h +++ b/lib/curl_ldap.h @@ -8,7 +8,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -22,10 +22,11 @@ * KIND, either express or implied. * ***************************************************************************/ -#if !defined(CURL_DISABLE_LDAP) || defined(USE_OPENLDAP) +#ifndef CURL_DISABLE_LDAP extern const struct Curl_handler Curl_handler_ldap; -#if defined(HAVE_LDAP_SSL) || defined(USE_OPENLDAP) +#if (defined(USE_OPENLDAP) && defined(USE_SSL)) || \ + (!defined(USE_OPENLDAP) && defined(HAVE_LDAP_SSL)) extern const struct Curl_handler Curl_handler_ldaps; #endif |