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/libsmb/clidgram.c | 1 + source3/libsmb/dsgetdcname.c | 1 + source3/libsmb/libsmb_server.c | 2 +- source3/libsmb/libsmb_xattr.c | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c index bce57cec3a..c8185f67ba 100644 --- a/source3/libsmb/clidgram.c +++ b/source3/libsmb/clidgram.c @@ -20,6 +20,7 @@ */ #include "includes.h" +#include "librpc/gen_ndr/messaging.h" /* * cli_send_mailslot, send a mailslot for client code ... diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c index 8c50a0aa39..6cf7c9430d 100644 --- a/source3/libsmb/dsgetdcname.c +++ b/source3/libsmb/dsgetdcname.c @@ -22,6 +22,7 @@ #include "includes.h" #include "libads/sitename_cache.h" +#include "../librpc/gen_ndr/ndr_netlogon.h" #define DSGETDCNAME_FMT "DSGETDCNAME/DOMAIN/%s" /* 15 minutes */ diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c index eb292da2ce..9784253cc2 100644 --- a/source3/libsmb/libsmb_server.c +++ b/source3/libsmb/libsmb_server.c @@ -26,7 +26,7 @@ #include "includes.h" #include "libsmbclient.h" #include "libsmb_internal.h" - +#include "../librpc/gen_ndr/ndr_lsa.h" /* * Check a server for being alive and well. diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c index cbdca4e748..6a01aec9c5 100644 --- a/source3/libsmb/libsmb_xattr.c +++ b/source3/libsmb/libsmb_xattr.c @@ -25,6 +25,7 @@ #include "includes.h" #include "libsmbclient.h" #include "libsmb_internal.h" +#include "../librpc/gen_ndr/ndr_lsa.h" /* -- cgit