]> granicus.if.org Git - curl/commitdiff
lber.h needs to be included since ldap.h might not include it
authorYang Tse <yangsita@gmail.com>
Tue, 9 Oct 2007 23:51:55 +0000 (23:51 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 9 Oct 2007 23:51:55 +0000 (23:51 +0000)
lib/ldap.c

index 095fbeb0b8e286d4ccbdee73294844f2265f2de3..365c112fee984f908187968737f8bfd1ac02f98d 100644 (file)
@@ -52,6 +52,9 @@
 # endif
 #else
 #define LDAP_DEPRECATED 1       /* Be sure ldap_init() is defined. */
+#ifdef HAVE_LBER_H
+# include <lber.h>
+#endif
 # include <ldap.h>
 #if (defined(HAVE_LDAP_SSL) && defined(HAVE_LDAP_SSL_H))
 # include <ldap_ssl.h>