aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2007-10-09 23:51:55 +0000
committerYang Tse <yangsita@gmail.com>2007-10-09 23:51:55 +0000
commit43e8f00861fa148d63ce349db8455a1739eeef14 (patch)
tree84009492ca0473c1c7d3df76f6c5a2f4fad0afe8
parent3337be81c8e1c28cb99885793edd4626163c2f08 (diff)
lber.h needs to be included since ldap.h might not include it
-rw-r--r--lib/ldap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 095fbeb0b..365c112fe 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -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>