summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-12 17:44:04 +0100
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-12-12 20:06:24 +0100
commitb56a6f2eda228698a2433ea2365fda5967bd904c (patch)
treed5b6084f9d2aa3431deecd13838219e5a0fe7624 /source4/lib/ldb
parent93ea5cb6f0f711db27a30ca9182a1dbab29b7a69 (diff)
downloadsamba-b56a6f2eda228698a2433ea2365fda5967bd904c.tar.gz
samba-b56a6f2eda228698a2433ea2365fda5967bd904c.tar.bz2
samba-b56a6f2eda228698a2433ea2365fda5967bd904c.zip
ldb:pyldb - optimise includes
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/pyldb.c3
-rw-r--r--source4/lib/ldb/pyldb.h3
-rw-r--r--source4/lib/ldb/pyldb_util.c3
3 files changed, 2 insertions, 7 deletions
diff --git a/source4/lib/ldb/pyldb.c b/source4/lib/ldb/pyldb.c
index 3bee9abcc9..44a006ffb3 100644
--- a/source4/lib/ldb/pyldb.c
+++ b/source4/lib/ldb/pyldb.c
@@ -26,9 +26,6 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <Python.h>
-#include "replace.h"
-#include "ldb_private.h"
#include "pyldb.h"
/* There's no Py_ssize_t in 2.4, apparently */
diff --git a/source4/lib/ldb/pyldb.h b/source4/lib/ldb/pyldb.h
index 1f4bdf7290..afc8c51881 100644
--- a/source4/lib/ldb/pyldb.h
+++ b/source4/lib/ldb/pyldb.h
@@ -1,7 +1,7 @@
/*
Unix SMB/CIFS implementation.
- Swig interface to ldb.
+ Python interface to ldb.
Copyright (C) 2007-2008 Jelmer Vernooij <jelmer@samba.org>
@@ -28,6 +28,7 @@
#include <Python.h>
#include <talloc.h>
+#include "ldb_private.h"
typedef struct {
PyObject_HEAD
diff --git a/source4/lib/ldb/pyldb_util.c b/source4/lib/ldb/pyldb_util.c
index 3e015d0939..35071f3645 100644
--- a/source4/lib/ldb/pyldb_util.c
+++ b/source4/lib/ldb/pyldb_util.c
@@ -23,10 +23,7 @@
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
-#include <Python.h>
-#include "replace.h"
#include "pyldb.h"
-#include <ldb.h>
static PyObject *ldb_module = NULL;