r9393: Fix ldb standalone build
authorSimo Sorce <idra@samba.org>
Thu, 18 Aug 2005 16:27:09 +0000 (16:27 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:33:33 +0000 (13:33 -0500)
(This used to be commit 796d0ea2fcf5132b157a397cc1a54aa26c042691)

source4/lib/ldb/common/ldb_dn.c
source4/lib/ldb/include/ldb.h

index df95e37dac472cf75c91739b83c37af855c8edbf..12078231b81e2c85220413543f8c7104e8083948 100644 (file)
@@ -353,6 +353,7 @@ struct ldb_dn *ldb_dn_explode(void *mem_ctx, const char *dn)
 
        /* Allocate a structure to hold the exploded DN */
        edn = ldb_dn_new(mem_ctx);
+       pdn = NULL;
 
        /* Empty DNs */
        if (dn[0] == '\0') {
index e7862522e4fa934ffc854f7a5a3d0308f85541b8..fc447102d6e22ea7965433381ab22e574bc4e3e2 100644 (file)
@@ -348,6 +348,11 @@ int ldb_attrib_add_handlers(struct ldb_context *ldb,
                            unsigned num_handlers);
 
 /* The following definitions come from lib/ldb/common/ldb_dn.c  */
+
+#ifndef BOOL
+typedef int BOOL;
+#endif
+
 BOOL ldb_dn_is_special(const struct ldb_dn *dn);
 BOOL ldb_dn_check_special(const struct ldb_dn *dn, const char *check);
 char *ldb_dn_escape_value(void *mem_ctx, struct ldb_val value);