summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/includes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index adae49ddea..27deaf4339 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -381,7 +381,7 @@
#include <krb5.h>
#endif
-#if HAVE_LDAP
+#if HAVE_LDAP_H
#include <ldap.h>
#endif
@@ -390,7 +390,7 @@
#endif
/* we support ADS if we have krb5 and ldap libs */
-#if defined(HAVE_KRB5) && defined(HAVE_LDAP) && defined(HAVE_SASL_H)
+#if defined(HAVE_KRB5) && defined(HAVE_LDAP) && defined(HAVE_LDAP_H) && defined(HAVE_SASL_H)
#define HAVE_ADS
#endif