summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-08-18 16:44:47 +0200
committerGünther Deschner <gd@samba.org>2010-08-26 00:20:28 +0200
commitb5bdcdd65e5292223fae9892eb5575b872b27591 (patch)
treea23a690dd1d7da5d7767eaf4752f8e7ec3d4e588 /source3
parentc2177909187ad104d5d2e13bad0f45fb97d121e2 (diff)
downloadsamba-b5bdcdd65e5292223fae9892eb5575b872b27591.tar.gz
samba-b5bdcdd65e5292223fae9892eb5575b872b27591.tar.bz2
samba-b5bdcdd65e5292223fae9892eb5575b872b27591.zip
s3-build: only include "fake_file.h" where needed.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h2
-rw-r--r--source3/libsmb/cliquota.c1
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c1
-rw-r--r--source3/smbd/fake_file.c1
-rw-r--r--source3/smbd/filename.c1
-rw-r--r--source3/smbd/nttrans.c1
-rw-r--r--source3/smbd/open.c1
-rw-r--r--source3/smbd/reply.c1
-rw-r--r--source3/utils/smbcquotas.c1
9 files changed, 8 insertions, 2 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index ab1b4b2d9a..e43981748b 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -255,8 +255,6 @@ typedef struct write_cache {
char *data;
} write_cache;
-#include "fake_file.h"
-
struct fd_handle {
size_t ref_count;
int fd;
diff --git a/source3/libsmb/cliquota.c b/source3/libsmb/cliquota.c
index 6642cf0f93..59c06ace79 100644
--- a/source3/libsmb/cliquota.c
+++ b/source3/libsmb/cliquota.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "../librpc/gen_ndr/ndr_security.h"
+#include "fake_file.h"
NTSTATUS cli_get_quota_handle(struct cli_state *cli, uint16_t *quota_fnum)
{
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 4c6e65173e..70758ecbdd 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -25,6 +25,7 @@
#include "../libcli/named_pipe_auth/npa_tstream.h"
#include "rpc_server.h"
#include "smbd/globals.h"
+#include "fake_file.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_RPC_SRV
diff --git a/source3/smbd/fake_file.c b/source3/smbd/fake_file.c
index 9a6931f4e3..d844261efb 100644
--- a/source3/smbd/fake_file.c
+++ b/source3/smbd/fake_file.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "fake_file.h"
struct fake_file_type {
const char *name;
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 154d34a4c0..8f9b8558c1 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -25,6 +25,7 @@
*/
#include "includes.h"
+#include "fake_file.h"
static NTSTATUS build_stream_path(TALLOC_CTX *mem_ctx,
connection_struct *conn,
diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c
index 965d279183..78774dc1b0 100644
--- a/source3/smbd/nttrans.c
+++ b/source3/smbd/nttrans.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "smbd/globals.h"
+#include "fake_file.h"
#include "../librpc/gen_ndr/ndr_security.h"
extern const struct generic_mapping file_generic_mapping;
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index ba1fbf227c..2009d2ab15 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -22,6 +22,7 @@
#include "includes.h"
#include "printing.h"
#include "smbd/globals.h"
+#include "fake_file.h"
#include "librpc/gen_ndr/messaging.h"
#include "../librpc/gen_ndr/ndr_security.h"
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 0775b398d5..5533ee07d1 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -27,6 +27,7 @@
#include "includes.h"
#include "printing.h"
#include "smbd/globals.h"
+#include "fake_file.h"
#include "../librpc/gen_ndr/cli_spoolss.h"
#include "rpc_client/cli_spoolss.h"
#include "rpc_client/init_spoolss.h"
diff --git a/source3/utils/smbcquotas.c b/source3/utils/smbcquotas.c
index f575872b0d..f473808886 100644
--- a/source3/utils/smbcquotas.c
+++ b/source3/utils/smbcquotas.c
@@ -25,6 +25,7 @@
#include "popt_common.h"
#include "../librpc/gen_ndr/ndr_lsa.h"
#include "rpc_client/cli_lsarpc.h"
+#include "fake_file.h"
static char *server;