From c6ebab846d25563d051b1a1248ea288ba7eb0bcb Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 5 May 2010 01:39:16 +0200 Subject: s3: only include gen_ndr headers where needed. This shrinks include/includes.h.gch by the size of 7 MB and reduces build time as follows: ccache build w/o patch real 4m21.529s ccache build with patch real 3m6.402s pch build w/o patch real 4m26.318s pch build with patch real 3m6.932s Guenther --- source3/utils/net_dom.c | 1 + source3/utils/net_lookup.c | 1 + source3/utils/net_rpc_join.c | 1 + source3/utils/net_rpc_samsync.c | 2 ++ source3/utils/netlookup.c | 1 + source3/utils/smbcacls.c | 1 + source3/utils/smbcontrol.c | 1 + source3/utils/smbcquotas.c | 1 + 8 files changed, 9 insertions(+) (limited to 'source3/utils') diff --git a/source3/utils/net_dom.c b/source3/utils/net_dom.c index c05a42465a..89cc228f47 100644 --- a/source3/utils/net_dom.c +++ b/source3/utils/net_dom.c @@ -20,6 +20,7 @@ #include "includes.h" #include "utils/net.h" #include "../librpc/gen_ndr/cli_initshutdown.h" +#include "../librpc/gen_ndr/ndr_winreg.h" int net_dom_usage(struct net_context *c, int argc, const char **argv) { diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index 102f1b263f..25c781f2c4 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -19,6 +19,7 @@ #include "includes.h" #include "utils/net.h" #include "libads/sitename_cache.h" +#include "../librpc/gen_ndr/ndr_netlogon.h" int net_lookup_usage(struct net_context *c, int argc, const char **argv) { diff --git a/source3/utils/net_rpc_join.c b/source3/utils/net_rpc_join.c index bb7d74b199..71fcc0945c 100644 --- a/source3/utils/net_rpc_join.c +++ b/source3/utils/net_rpc_join.c @@ -23,6 +23,7 @@ #include "../libcli/auth/libcli_auth.h" #include "../librpc/gen_ndr/cli_lsa.h" #include "../librpc/gen_ndr/cli_samr.h" +#include "../librpc/gen_ndr/ndr_netlogon.h" /* Macro for checking RPC error codes to make things more readable */ diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c index 739818ddb5..85bdc75cfb 100644 --- a/source3/utils/net_rpc_samsync.c +++ b/source3/utils/net_rpc_samsync.c @@ -25,6 +25,8 @@ #include "includes.h" #include "utils/net.h" +#include "../librpc/gen_ndr/ndr_netlogon.h" +#include "../librpc/gen_ndr/ndr_drsuapi.h" static void parse_samsync_partial_replication_objects(TALLOC_CTX *mem_ctx, int argc, diff --git a/source3/utils/netlookup.c b/source3/utils/netlookup.c index af219eb93c..3fa219998b 100644 --- a/source3/utils/netlookup.c +++ b/source3/utils/netlookup.c @@ -21,6 +21,7 @@ #include "includes.h" #include "utils/net.h" +#include "../librpc/gen_ndr/ndr_lsa.h" /******************************************************** Connection cachine struct. Goes away when ctx destroyed. diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 8dd2a36da4..7db1f17b22 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -22,6 +22,7 @@ */ #include "includes.h" +#include "../librpc/gen_ndr/ndr_lsa.h" extern bool AllowDebugChange; diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index e97d554179..9ddabc8757 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -24,6 +24,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/messaging.h" #if HAVE_LIBUNWIND_H #include diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c index ef67ad77b4..49a10e5137 100644 --- a/source3/utils/smbcquotas.c +++ b/source3/utils/smbcquotas.c @@ -22,6 +22,7 @@ */ #include "includes.h" +#include "../librpc/gen_ndr/ndr_lsa.h" static char *server; -- cgit