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 095fbeb..365c112 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>