summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-18 00:39:43 +0200
committerGünther Deschner <gd@samba.org>2010-05-18 00:44:27 +0200
commitd7d313851aed176d1caf7374a87c5ad327cb00a8 (patch)
tree15f2c2b492a8107386ddca836ed089f84c8dc637
parente16ed3399adf1e0fb9f6979677711bb0ab7d0409 (diff)
downloadsamba-d7d313851aed176d1caf7374a87c5ad327cb00a8.tar.gz
samba-d7d313851aed176d1caf7374a87c5ad327cb00a8.tar.bz2
samba-d7d313851aed176d1caf7374a87c5ad327cb00a8.zip
s3-tldap: only include tldap when actually needed.
Guenther
-rw-r--r--source3/include/includes.h2
-rw-r--r--source3/lib/tldap.c1
-rw-r--r--source3/lib/tldap_util.c2
-rw-r--r--source3/passdb/pdb_ads.c2
4 files changed, 5 insertions, 2 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 169b7c0f58..07b31c2406 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -680,8 +680,6 @@ struct ntlmssp_state;
#include "talloc_dict.h"
#include "../lib/util/smb_threads.h"
#include "../lib/util/smb_threads_internal.h"
-#include "tldap.h"
-#include "tldap_util.h"
#include "lib/smbconf/smbconf.h"
#include "lib/smbconf/smbconf_init.h"
diff --git a/source3/lib/tldap.c b/source3/lib/tldap.c
index fffa42cd33..25f39ed8a2 100644
--- a/source3/lib/tldap.c
+++ b/source3/lib/tldap.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "tldap.h"
bool tevent_req_is_ldap_error(struct tevent_req *req, int *perr)
{
diff --git a/source3/lib/tldap_util.c b/source3/lib/tldap_util.c
index f9f54aaf4d..5ff796137f 100644
--- a/source3/lib/tldap_util.c
+++ b/source3/lib/tldap_util.c
@@ -18,6 +18,8 @@
*/
#include "includes.h"
+#include "tldap.h"
+#include "tldap_util.h"
bool tldap_entry_values(struct tldap_message *msg, const char *attribute,
int *num_values, DATA_BLOB **values)
diff --git a/source3/passdb/pdb_ads.c b/source3/passdb/pdb_ads.c
index 3ddf4f2dc0..a01d94e287 100644
--- a/source3/passdb/pdb_ads.c
+++ b/source3/passdb/pdb_ads.c
@@ -18,6 +18,8 @@
*/
#include "includes.h"
+#include "tldap.h"
+#include "tldap_util.h"
struct pdb_ads_state {
struct sockaddr_un socket_address;