summaryrefslogtreecommitdiff
path: root/source3/lib
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/lib
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/lib')
-rw-r--r--source3/lib/debug.c1
-rw-r--r--source3/lib/dmallocmsg.c1
-rw-r--r--source3/lib/g_lock.c1
-rw-r--r--source3/lib/netapi/getdc.c1
-rw-r--r--source3/lib/netapi/serverinfo.c1
-rw-r--r--source3/lib/tallocmsg.c1
6 files changed, 4 insertions, 2 deletions
diff --git a/source3/lib/debug.c b/source3/lib/debug.c
index 83211dd5e6..3edf9608ca 100644
--- a/source3/lib/debug.c
+++ b/source3/lib/debug.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "librpc/gen_ndr/messaging.h"
/* -------------------------------------------------------------------------- **
* Defines...
diff --git a/source3/lib/dmallocmsg.c b/source3/lib/dmallocmsg.c
index 935fc1de1a..59f7c3bd7e 100644
--- a/source3/lib/dmallocmsg.c
+++ b/source3/lib/dmallocmsg.c
@@ -17,6 +17,7 @@
*/
#include "includes.h"
+#include "librpc/gen_ndr/messaging.h"
/**
* @file dmallocmsg.c
diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c
index 1726047886..d7828e228f 100644
--- a/source3/lib/g_lock.c
+++ b/source3/lib/g_lock.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "g_lock.h"
+#include "librpc/gen_ndr/messaging.h"
static NTSTATUS g_lock_force_unlock(struct g_lock_ctx *ctx, const char *name,
struct server_id pid);
diff --git a/source3/lib/netapi/getdc.c b/source3/lib/netapi/getdc.c
index 9af01cecfd..ee17672215 100644
--- a/source3/lib/netapi/getdc.c
+++ b/source3/lib/netapi/getdc.c
@@ -23,7 +23,6 @@
#include "lib/netapi/netapi.h"
#include "lib/netapi/netapi_private.h"
#include "lib/netapi/libnetapi.h"
-#include "libnet/libnet.h"
#include "../librpc/gen_ndr/cli_netlogon.h"
/********************************************************************
diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c
index f537802d78..51932a5a92 100644
--- a/source3/lib/netapi/serverinfo.c
+++ b/source3/lib/netapi/serverinfo.c
@@ -23,7 +23,6 @@
#include "lib/netapi/netapi.h"
#include "lib/netapi/netapi_private.h"
#include "lib/netapi/libnetapi.h"
-#include "libnet/libnet.h"
#include "../librpc/gen_ndr/cli_srvsvc.h"
/****************************************************************
diff --git a/source3/lib/tallocmsg.c b/source3/lib/tallocmsg.c
index 3cfd118d21..6cea757457 100644
--- a/source3/lib/tallocmsg.c
+++ b/source3/lib/tallocmsg.c
@@ -17,6 +17,7 @@
*/
#include "includes.h"
+#include "librpc/gen_ndr/messaging.h"
/**
* @file tallocmsg.c