summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-04-23 11:23:06 +0200
committerJelmer Vernooij <jelmer@samba.org>2009-06-02 18:05:41 +0200
commit688efbbc687bf96c6801afe55deb55a7002a9bf3 (patch)
tree1af8b83e3f4561e6fa09e018592c7cc2966336bc /source4/lib
parent2c84685a3d58a3e6baac5383e78eff2605ec7c02 (diff)
downloadsamba-688efbbc687bf96c6801afe55deb55a7002a9bf3.tar.gz
samba-688efbbc687bf96c6801afe55deb55a7002a9bf3.tar.bz2
samba-688efbbc687bf96c6801afe55deb55a7002a9bf3.zip
Fix finding the LDB header files in the system in pyldb_util.
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/pyldb.h1
-rw-r--r--source4/lib/ldb/pyldb_util.c2
-rw-r--r--source4/lib/ldb/python.mk1
3 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/ldb/pyldb.h b/source4/lib/ldb/pyldb.h
index 931dd7eeae..e0e0d2af69 100644
--- a/source4/lib/ldb/pyldb.h
+++ b/source4/lib/ldb/pyldb.h
@@ -27,6 +27,7 @@
#define _PYLDB_H_
#include <Python.h>
+#include <talloc.h>
typedef struct {
PyObject_HEAD
diff --git a/source4/lib/ldb/pyldb_util.c b/source4/lib/ldb/pyldb_util.c
index 9f9a0deb8c..84183e89de 100644
--- a/source4/lib/ldb/pyldb_util.c
+++ b/source4/lib/ldb/pyldb_util.c
@@ -24,9 +24,9 @@
*/
#include "replace.h"
-#include "ldb_private.h"
#include <Python.h>
#include "pyldb.h"
+#include <ldb.h>
void PyErr_SetLdbError(PyObject *error, int ret, struct ldb_context *ldb_ctx)
{
diff --git a/source4/lib/ldb/python.mk b/source4/lib/ldb/python.mk
index 90f62c9040..e08c150aaf 100644
--- a/source4/lib/ldb/python.mk
+++ b/source4/lib/ldb/python.mk
@@ -8,6 +8,7 @@ $(pyldb_OBJ_FILES): CFLAGS+=-I$(ldbsrcdir)/include
[SUBSYSTEM::pyldb_util]
PUBLIC_DEPENDENCIES = LIBPYTHON
+PRIVATE_DEPENDENCIES = LIBLDB
pyldb_util_OBJ_FILES = $(ldbsrcdir)/pyldb_util.o
$(pyldb_OBJ_FILES): CFLAGS+=-I$(ldbsrcdir)/include