From d7d313851aed176d1caf7374a87c5ad327cb00a8 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 18 May 2010 00:39:43 +0200 Subject: s3-tldap: only include tldap when actually needed. Guenther --- source3/include/includes.h | 2 -- source3/lib/tldap.c | 1 + source3/lib/tldap_util.c | 2 ++ source3/passdb/pdb_ads.c | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) (limited to 'source3') 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; -- cgit