summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-05 01:39:16 +0200
committerGünther Deschner <gd@samba.org>2010-05-06 00:22:59 +0200
commitc6ebab846d25563d051b1a1248ea288ba7eb0bcb (patch)
treebe093beb5dec7460403520dac6cef6205cfc1bb9 /source3/smbd
parentd6a6362752b7a46178e80d36e4c3d69658d4f273 (diff)
downloadsamba-c6ebab846d25563d051b1a1248ea288ba7eb0bcb.tar.gz
samba-c6ebab846d25563d051b1a1248ea288ba7eb0bcb.tar.bz2
samba-c6ebab846d25563d051b1a1248ea288ba7eb0bcb.zip
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
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/blocking.c1
-rw-r--r--source3/smbd/change_trust_pw.c1
-rw-r--r--source3/smbd/close.c1
-rw-r--r--source3/smbd/notify.c1
-rw-r--r--source3/smbd/notify_inotify.c1
-rw-r--r--source3/smbd/notify_internal.c1
-rw-r--r--source3/smbd/open.c1
-rw-r--r--source3/smbd/oplock.c1
-rw-r--r--source3/smbd/process.c1
-rw-r--r--source3/smbd/server.c1
-rw-r--r--source3/smbd/sesssetup.c1
-rw-r--r--source3/smbd/smb2_lock.c1
-rw-r--r--source3/smbd/statcache.c1
-rw-r--r--source3/smbd/trans2.c1
14 files changed, 14 insertions, 0 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c
index 9b20adfb89..b50c4f48f2 100644
--- a/source3/smbd/blocking.c
+++ b/source3/smbd/blocking.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "smbd/globals.h"
+#include "librpc/gen_ndr/messaging.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_LOCKING
diff --git a/source3/smbd/change_trust_pw.c b/source3/smbd/change_trust_pw.c
index ec3046e0d2..d02de7ae64 100644
--- a/source3/smbd/change_trust_pw.c
+++ b/source3/smbd/change_trust_pw.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "../librpc/gen_ndr/ndr_netlogon.h"
/************************************************************************
Change the trust account password for a domain.
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index bf181f3bd0..098edacb6d 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "librpc/gen_ndr/messaging.h"
/****************************************************************************
Run a file if it is a magic script.
diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c
index 554591fc98..5df389fc20 100644
--- a/source3/smbd/notify.c
+++ b/source3/smbd/notify.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "smbd/globals.h"
+#include "../librpc/gen_ndr/notify.h"
struct notify_change_request {
struct notify_change_request *prev, *next;
diff --git a/source3/smbd/notify_inotify.c b/source3/smbd/notify_inotify.c
index b1d424d7f1..fe6436d28c 100644
--- a/source3/smbd/notify_inotify.c
+++ b/source3/smbd/notify_inotify.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "../librpc/gen_ndr/notify.h"
#ifdef HAVE_INOTIFY
diff --git a/source3/smbd/notify_internal.c b/source3/smbd/notify_internal.c
index 22801e9d92..020cb58a5c 100644
--- a/source3/smbd/notify_internal.c
+++ b/source3/smbd/notify_internal.c
@@ -25,6 +25,7 @@
#include "includes.h"
#include "librpc/gen_ndr/ndr_notify.h"
+#include "librpc/gen_ndr/messaging.h"
struct notify_context {
struct db_context *db_recursive;
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index 19bd0c2d97..62651b08ad 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "smbd/globals.h"
+#include "librpc/gen_ndr/messaging.h"
extern const struct generic_mapping file_generic_mapping;
diff --git a/source3/smbd/oplock.c b/source3/smbd/oplock.c
index c22a589104..d00bcba32a 100644
--- a/source3/smbd/oplock.c
+++ b/source3/smbd/oplock.c
@@ -22,6 +22,7 @@
#define DBGC_CLASS DBGC_LOCKING
#include "includes.h"
#include "smbd/globals.h"
+#include "librpc/gen_ndr/messaging.h"
/****************************************************************************
Get the number of current exclusive oplocks.
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 53c5e0b408..128a612a86 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -34,6 +34,7 @@
#include "../librpc/gen_ndr/srv_svcctl.h"
#include "../librpc/gen_ndr/srv_winreg.h"
#include "../librpc/gen_ndr/srv_wkssvc.h"
+#include "librpc/gen_ndr/messaging.h"
extern bool global_machine_password_needs_changing;
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 49e2eda3ce..5d4aca1bc5 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "smbd/globals.h"
+#include "librpc/gen_ndr/messaging.h"
static_decl_rpc;
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 8c0317ae9e..a00a362537 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -26,6 +26,7 @@
#include "smbd/globals.h"
#include "../libcli/auth/spnego.h"
#include "ntlmssp.h"
+#include "librpc/gen_ndr/messaging.h"
/* For split krb5 SPNEGO blobs. */
struct pending_auth_data {
diff --git a/source3/smbd/smb2_lock.c b/source3/smbd/smb2_lock.c
index cc53458a93..9e699159ff 100644
--- a/source3/smbd/smb2_lock.c
+++ b/source3/smbd/smb2_lock.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "smbd/globals.h"
#include "../libcli/smb/smb_common.h"
+#include "librpc/gen_ndr/messaging.h"
struct smbd_smb2_lock_element {
uint64_t offset;
diff --git a/source3/smbd/statcache.c b/source3/smbd/statcache.c
index db347b5b7e..88cb97e6a6 100644
--- a/source3/smbd/statcache.c
+++ b/source3/smbd/statcache.c
@@ -21,6 +21,7 @@
*/
#include "includes.h"
+#include "librpc/gen_ndr/messaging.h"
/****************************************************************************
Stat cache code used in unix_convert.
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 811a647ab3..9c2e3296e5 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -27,6 +27,7 @@
#include "version.h"
#include "smbd/globals.h"
#include "../libcli/auth/libcli_auth.h"
+#include "../librpc/gen_ndr/xattr.h"
#define DIR_ENTRY_SAFETY_MARGIN 4096