r141: A number of changes to get things working on FreeBSD and reduce the breakage
[ira/wip.git] / source4 / lib / ldb / ldb_ldap / ldb_ldap.c
index e6cbb52cad8724440c0ab310b18b59c1e48a45dc..25dad914da44a75755d1f1b0af3af34fa73e7693 100644 (file)
@@ -33,7 +33,8 @@
  */
 
 #include "includes.h"
-#include "ldb_ldap/ldb_ldap.h"
+#if HAVE_LDAP
+#include "ldb_ldap.h"
 
 #if 0
 /*
@@ -518,3 +519,4 @@ failed:
        if (ldb) free(ldb);
        return NULL;
 }
+#endif /*HAVE_LDAP*/