summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-03-22 22:34:22 +0100
committerGünther Deschner <gd@samba.org>2011-03-30 01:13:08 +0200
commit45364f5e69c4ef00f6870e11213da930e802b6d0 (patch)
tree0c8095f8f5b1dfddca8c1de03152dfdb06c0f3d5 /source3/modules
parent8c24ebf371d8aff4742a2ba063a8789e20eaaabc (diff)
downloadsamba-45364f5e69c4ef00f6870e11213da930e802b6d0.tar.gz
s3-vfs: include smbd/smbd.h in vfs modules.
Guenther
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/gpfs.c1
-rw-r--r--source3/modules/nfs4_acls.c1
-rw-r--r--source3/modules/onefs_acl.c1
-rw-r--r--source3/modules/onefs_cbrl.c1
-rw-r--r--source3/modules/onefs_config.c1
-rw-r--r--source3/modules/onefs_dir.c1
-rw-r--r--source3/modules/onefs_notify.c1
-rw-r--r--source3/modules/onefs_open.c1
-rw-r--r--source3/modules/onefs_shadow_copy.c1
-rw-r--r--source3/modules/onefs_streams.c1
-rw-r--r--source3/modules/onefs_system.c1
-rw-r--r--source3/modules/perfcount_onefs.c1
-rw-r--r--source3/modules/perfcount_test.c1
-rw-r--r--source3/modules/vfs_acl_common.c1
-rw-r--r--source3/modules/vfs_acl_tdb.c1
-rw-r--r--source3/modules/vfs_acl_xattr.c1
-rw-r--r--source3/modules/vfs_afsacl.c1
-rw-r--r--source3/modules/vfs_aio_fork.c1
-rw-r--r--source3/modules/vfs_aixacl.c1
-rw-r--r--source3/modules/vfs_aixacl2.c1
-rw-r--r--source3/modules/vfs_aixacl_util.c1
-rw-r--r--source3/modules/vfs_audit.c1
-rw-r--r--source3/modules/vfs_cacheprime.c1
-rw-r--r--source3/modules/vfs_cap.c1
-rw-r--r--source3/modules/vfs_catia.c1
-rw-r--r--source3/modules/vfs_commit.c1
-rw-r--r--source3/modules/vfs_crossrename.c1
-rw-r--r--source3/modules/vfs_default.c2
-rw-r--r--source3/modules/vfs_default_quota.c1
-rw-r--r--source3/modules/vfs_dirsort.c1
-rw-r--r--source3/modules/vfs_expand_msdfs.c1
-rw-r--r--source3/modules/vfs_extd_audit.c1
-rw-r--r--source3/modules/vfs_fake_perms.c1
-rw-r--r--source3/modules/vfs_fileid.c1
-rw-r--r--source3/modules/vfs_full_audit.c1
-rw-r--r--source3/modules/vfs_gpfs.c1
-rw-r--r--source3/modules/vfs_hpuxacl.c1
-rw-r--r--source3/modules/vfs_irixacl.c1
-rw-r--r--source3/modules/vfs_linux_xfs_sgid.c1
-rw-r--r--source3/modules/vfs_netatalk.c1
-rw-r--r--source3/modules/vfs_notify_fam.c1
-rw-r--r--source3/modules/vfs_onefs.c1
-rw-r--r--source3/modules/vfs_onefs_shadow_copy.c1
-rw-r--r--source3/modules/vfs_posixacl.c1
-rw-r--r--source3/modules/vfs_prealloc.c1
-rw-r--r--source3/modules/vfs_preopen.c1
-rw-r--r--source3/modules/vfs_readahead.c1
-rw-r--r--source3/modules/vfs_readonly.c1
-rw-r--r--source3/modules/vfs_recycle.c1
-rw-r--r--source3/modules/vfs_scannedonly.c1
-rw-r--r--source3/modules/vfs_shadow_copy.c1
-rw-r--r--source3/modules/vfs_shadow_copy2.c1
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.c1
-rw-r--r--source3/modules/vfs_solarisacl.c1
-rw-r--r--source3/modules/vfs_streams_depot.c1
-rw-r--r--source3/modules/vfs_streams_xattr.c1
-rw-r--r--source3/modules/vfs_syncops.c1
-rw-r--r--source3/modules/vfs_time_audit.c1
-rw-r--r--source3/modules/vfs_tru64acl.c1
-rw-r--r--source3/modules/vfs_tsmsm.c1
-rw-r--r--source3/modules/vfs_xattr_tdb.c1
-rw-r--r--source3/modules/vfs_zfsacl.c1
62 files changed, 63 insertions, 0 deletions
diff --git a/source3/modules/gpfs.c b/source3/modules/gpfs.c
index 493e1fbb437..ef770995483 100644
--- a/source3/modules/gpfs.c
+++ b/source3/modules/gpfs.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#ifdef HAVE_GPFS
diff --git a/source3/modules/nfs4_acls.c b/source3/modules/nfs4_acls.c
index b7509c85d22..14d464451fa 100644
--- a/source3/modules/nfs4_acls.c
+++ b/source3/modules/nfs4_acls.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "nfs4_acls.h"
#include "librpc/gen_ndr/ndr_security.h"
#include "../libcli/security/dom_sid.h"
diff --git a/source3/modules/onefs_acl.c b/source3/modules/onefs_acl.c
index 7080f6c660b..e986b2a9789 100644
--- a/source3/modules/onefs_acl.c
+++ b/source3/modules/onefs_acl.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs.h"
#include "onefs_config.h"
diff --git a/source3/modules/onefs_cbrl.c b/source3/modules/onefs_cbrl.c
index 203710ec5a1..5c69bec566c 100644
--- a/source3/modules/onefs_cbrl.c
+++ b/source3/modules/onefs_cbrl.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs.h"
#include <ifs/ifs_syscalls.h>
diff --git a/source3/modules/onefs_config.c b/source3/modules/onefs_config.c
index aa0d99e81a2..8b34d7cd454 100644
--- a/source3/modules/onefs_config.c
+++ b/source3/modules/onefs_config.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs_config.h"
#include <ifs/ifs_syscalls.h>
diff --git a/source3/modules/onefs_dir.c b/source3/modules/onefs_dir.c
index 2ab8b867714..d49042e06bd 100644
--- a/source3/modules/onefs_dir.c
+++ b/source3/modules/onefs_dir.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs.h"
#include "onefs_config.h"
diff --git a/source3/modules/onefs_notify.c b/source3/modules/onefs_notify.c
index 0447d0c03e0..bbdade60159 100644
--- a/source3/modules/onefs_notify.c
+++ b/source3/modules/onefs_notify.c
@@ -34,6 +34,7 @@
* events back to the proper SMB requests */
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs.h"
#include <ifs/ifs_types.h>
diff --git a/source3/modules/onefs_open.c b/source3/modules/onefs_open.c
index c9372e57deb..19b2ea07361 100644
--- a/source3/modules/onefs_open.c
+++ b/source3/modules/onefs_open.c
@@ -33,6 +33,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs.h"
#include "onefs_config.h"
#include "oplock_onefs.h"
diff --git a/source3/modules/onefs_shadow_copy.c b/source3/modules/onefs_shadow_copy.c
index 5b02534715f..29ee9e1a225 100644
--- a/source3/modules/onefs_shadow_copy.c
+++ b/source3/modules/onefs_shadow_copy.c
@@ -21,6 +21,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "smbd/smbd.h"
#include <ifs/ifs_syscalls.h>
#include <sys/types.h>
#include <sys/isi_enc.h>
diff --git a/source3/modules/onefs_streams.c b/source3/modules/onefs_streams.c
index fa65b519966..85ab25683f3 100644
--- a/source3/modules/onefs_streams.c
+++ b/source3/modules/onefs_streams.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs.h"
#include "onefs_config.h"
diff --git a/source3/modules/onefs_system.c b/source3/modules/onefs_system.c
index 94b5da2a9eb..05b033181ea 100644
--- a/source3/modules/onefs_system.c
+++ b/source3/modules/onefs_system.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs.h"
#include "onefs_config.h"
#include "oplock_onefs.h"
diff --git a/source3/modules/perfcount_onefs.c b/source3/modules/perfcount_onefs.c
index d693376bfe2..fcc0620159c 100644
--- a/source3/modules/perfcount_onefs.c
+++ b/source3/modules/perfcount_onefs.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include <sys/isi_stats_protocol.h>
#include <sys/isi_stats_client.h>
#include <sys/isi_stats_cifs.h>
diff --git a/source3/modules/perfcount_test.c b/source3/modules/perfcount_test.c
index 67be4aa9c61..c0b53360c72 100644
--- a/source3/modules/perfcount_test.c
+++ b/source3/modules/perfcount_test.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#define PARM_PC_TEST_TYPE "pc_test"
#define PARM_DUMPON_COUNT "count"
diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c
index 0e513ee682c..b3e9973fdaa 100644
--- a/source3/modules/vfs_acl_common.c
+++ b/source3/modules/vfs_acl_common.c
@@ -19,6 +19,7 @@
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
+#include "smbd/smbd.h"
#include "system/filesys.h"
#include "../libcli/security/security.h"
#include "../librpc/gen_ndr/ndr_security.h"
diff --git a/source3/modules/vfs_acl_tdb.c b/source3/modules/vfs_acl_tdb.c
index 27aa37a8e07..a5f21329a46 100644
--- a/source3/modules/vfs_acl_tdb.c
+++ b/source3/modules/vfs_acl_tdb.c
@@ -21,6 +21,7 @@
/* NOTE: This is an experimental module, not yet finished. JRA. */
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
#include "librpc/gen_ndr/xattr.h"
#include "librpc/gen_ndr/ndr_xattr.h"
diff --git a/source3/modules/vfs_acl_xattr.c b/source3/modules/vfs_acl_xattr.c
index aa7aeae5f45..46f9cf6ef40 100644
--- a/source3/modules/vfs_acl_xattr.c
+++ b/source3/modules/vfs_acl_xattr.c
@@ -21,6 +21,7 @@
/* NOTE: This is an experimental module, not yet finished. JRA. */
#include "includes.h"
+#include "smbd/smbd.h"
#include "librpc/gen_ndr/xattr.h"
#include "librpc/gen_ndr/ndr_xattr.h"
#include "../lib/crypto/crypto.h"
diff --git a/source3/modules/vfs_afsacl.c b/source3/modules/vfs_afsacl.c
index df4a20a90bc..9f085ce317b 100644
--- a/source3/modules/vfs_afsacl.c
+++ b/source3/modules/vfs_afsacl.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c
index 54964a373eb..fc8ffefc13b 100644
--- a/source3/modules/vfs_aio_fork.c
+++ b/source3/modules/vfs_aio_fork.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/shmem.h"
struct mmap_area {
diff --git a/source3/modules/vfs_aixacl.c b/source3/modules/vfs_aixacl.c
index a4f58db0ba7..30a65c87bd4 100644
--- a/source3/modules/vfs_aixacl.c
+++ b/source3/modules/vfs_aixacl.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
extern SMB_ACL_T aixacl_to_smbacl( struct acl *file_acl);
extern struct acl *aixacl_smb_to_aixacl(SMB_ACL_TYPE_T acltype, SMB_ACL_T theacl);
diff --git a/source3/modules/vfs_aixacl2.c b/source3/modules/vfs_aixacl2.c
index fcf964b512f..e74c00f4239 100644
--- a/source3/modules/vfs_aixacl2.c
+++ b/source3/modules/vfs_aixacl2.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "nfs4_acls.h"
#undef DBGC_CLASS
diff --git a/source3/modules/vfs_aixacl_util.c b/source3/modules/vfs_aixacl_util.c
index 2d84f03bfb0..768d0f33585 100644
--- a/source3/modules/vfs_aixacl_util.c
+++ b/source3/modules/vfs_aixacl_util.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
SMB_ACL_T aixacl_to_smbacl(struct acl *file_acl)
{
diff --git a/source3/modules/vfs_audit.c b/source3/modules/vfs_audit.c
index cb1a5d3a0c3..e816a0b29fe 100644
--- a/source3/modules/vfs_audit.c
+++ b/source3/modules/vfs_audit.c
@@ -24,6 +24,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "system/syslog.h"
+#include "smbd/smbd.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
diff --git a/source3/modules/vfs_cacheprime.c b/source3/modules/vfs_cacheprime.c
index 02cffbb703d..167b93580f9 100644
--- a/source3/modules/vfs_cacheprime.c
+++ b/source3/modules/vfs_cacheprime.c
@@ -16,6 +16,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
/* Cache priming module.
*
diff --git a/source3/modules/vfs_cap.c b/source3/modules/vfs_cap.c
index 89f16891a9b..9edf13326fa 100644
--- a/source3/modules/vfs_cap.c
+++ b/source3/modules/vfs_cap.c
@@ -23,6 +23,7 @@
#include "includes.h"
+#include "smbd/smbd.h"
/* cap functions */
static char *capencode(TALLOC_CTX *ctx, const char *from);
diff --git a/source3/modules/vfs_catia.c b/source3/modules/vfs_catia.c
index af6efd28df7..12a32d24d52 100644
--- a/source3/modules/vfs_catia.c
+++ b/source3/modules/vfs_catia.c
@@ -27,6 +27,7 @@
#include "includes.h"
+#include "smbd/smbd.h"
#define GLOBAL_SNUM 0xFFFFFFF
#define MAP_SIZE 0xFF
diff --git a/source3/modules/vfs_commit.c b/source3/modules/vfs_commit.c
index cade1170bab..4a202a0192c 100644
--- a/source3/modules/vfs_commit.c
+++ b/source3/modules/vfs_commit.c
@@ -17,6 +17,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
/* Commit data module.
*
diff --git a/source3/modules/vfs_crossrename.c b/source3/modules/vfs_crossrename.c
index e1d0353d1e9..ffb807da487 100644
--- a/source3/modules/vfs_crossrename.c
+++ b/source3/modules/vfs_crossrename.c
@@ -16,6 +16,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
#include "transfer_file.h"
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 886798ebc3d..414e428c6c7 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -19,7 +19,9 @@
*/
#include "includes.h"
+#include "system/time.h"
#include "system/filesys.h"
+#include "smbd/smbd.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
diff --git a/source3/modules/vfs_default_quota.c b/source3/modules/vfs_default_quota.c
index 33af5bd9e9f..fc95ef2e3b8 100644
--- a/source3/modules/vfs_default_quota.c
+++ b/source3/modules/vfs_default_quota.c
@@ -68,6 +68,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_QUOTA
diff --git a/source3/modules/vfs_dirsort.c b/source3/modules/vfs_dirsort.c
index 050c7342c09..adeab0425d5 100644
--- a/source3/modules/vfs_dirsort.c
+++ b/source3/modules/vfs_dirsort.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
static int compare_dirent (const SMB_STRUCT_DIRENT *da, const SMB_STRUCT_DIRENT *db)
diff --git a/source3/modules/vfs_expand_msdfs.c b/source3/modules/vfs_expand_msdfs.c
index 45cc32c88e5..ab0a8412e85 100644
--- a/source3/modules/vfs_expand_msdfs.c
+++ b/source3/modules/vfs_expand_msdfs.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "smbd/smbd.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
#include "smbd/globals.h"
diff --git a/source3/modules/vfs_extd_audit.c b/source3/modules/vfs_extd_audit.c
index 326e40428eb..bb334892a06 100644
--- a/source3/modules/vfs_extd_audit.c
+++ b/source3/modules/vfs_extd_audit.c
@@ -25,6 +25,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "system/syslog.h"
+#include "smbd/smbd.h"
static int vfs_extd_audit_debug_level = DBGC_VFS;
diff --git a/source3/modules/vfs_fake_perms.c b/source3/modules/vfs_fake_perms.c
index 344b15f95da..eb36e1d2246 100644
--- a/source3/modules/vfs_fake_perms.c
+++ b/source3/modules/vfs_fake_perms.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
#undef DBGC_CLASS
diff --git a/source3/modules/vfs_fileid.c b/source3/modules/vfs_fileid.c
index 27da7d63bb0..4c230a0566d 100644
--- a/source3/modules/vfs_fileid.c
+++ b/source3/modules/vfs_fileid.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
static int vfs_fileid_debug_level = DBGC_VFS;
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index 71a87233152..c9a9e3d4858 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -60,6 +60,7 @@
#include "includes.h"
#include "system/filesys.h"
#include "system/syslog.h"
+#include "smbd/smbd.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
static int vfs_full_audit_debug_level = DBGC_VFS;
diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c
index e9257e65a34..72976778763 100644
--- a/source3/modules/vfs_gpfs.c
+++ b/source3/modules/vfs_gpfs.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "librpc/gen_ndr/ndr_xattr.h"
#undef DBGC_CLASS
diff --git a/source3/modules/vfs_hpuxacl.c b/source3/modules/vfs_hpuxacl.c
index 62a35b16805..1df3fbbf5a5 100644
--- a/source3/modules/vfs_hpuxacl.c
+++ b/source3/modules/vfs_hpuxacl.c
@@ -47,6 +47,7 @@
#include "includes.h"
+#include "smbd/smbd.h"
/*
* including standard header <sys/aclv.h>
diff --git a/source3/modules/vfs_irixacl.c b/source3/modules/vfs_irixacl.c
index 42f82a96209..cceddb2f8de 100644
--- a/source3/modules/vfs_irixacl.c
+++ b/source3/modules/vfs_irixacl.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
/* prototypes for private functions first - for clarity */
diff --git a/source3/modules/vfs_linux_xfs_sgid.c b/source3/modules/vfs_linux_xfs_sgid.c
index ca2b5b58a79..fee12b01103 100644
--- a/source3/modules/vfs_linux_xfs_sgid.c
+++ b/source3/modules/vfs_linux_xfs_sgid.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "smbd/smbd.h"
static int linux_xfs_sgid_mkdir(vfs_handle_struct *handle, const char *path, mode_t mode)
{
diff --git a/source3/modules/vfs_netatalk.c b/source3/modules/vfs_netatalk.c
index 11559aea0e4..8d2c9b7ab1c 100644
--- a/source3/modules/vfs_netatalk.c
+++ b/source3/modules/vfs_netatalk.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
#undef DBGC_CLASS
diff --git a/source3/modules/vfs_notify_fam.c b/source3/modules/vfs_notify_fam.c
index c26d137af07..a4e7fd1e2ba 100644
--- a/source3/modules/vfs_notify_fam.c
+++ b/source3/modules/vfs_notify_fam.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "librpc/gen_ndr/notify.h"
#include <fam.h>
diff --git a/source3/modules/vfs_onefs.c b/source3/modules/vfs_onefs.c
index 5f1b99292b7..94685f6ded7 100644
--- a/source3/modules/vfs_onefs.c
+++ b/source3/modules/vfs_onefs.c
@@ -19,6 +19,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs.h"
#include "onefs_config.h"
diff --git a/source3/modules/vfs_onefs_shadow_copy.c b/source3/modules/vfs_onefs_shadow_copy.c
index 9011f6da77f..89be05d8a21 100644
--- a/source3/modules/vfs_onefs_shadow_copy.c
+++ b/source3/modules/vfs_onefs_shadow_copy.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "onefs_shadow_copy.h"
static int vfs_onefs_shadow_copy_debug_level = DBGC_VFS;
diff --git a/source3/modules/vfs_posixacl.c b/source3/modules/vfs_posixacl.c
index 6bdfeda6465..9890110d986 100644
--- a/source3/modules/vfs_posixacl.c
+++ b/source3/modules/vfs_posixacl.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
diff --git a/source3/modules/vfs_prealloc.c b/source3/modules/vfs_prealloc.c
index 386de290714..dce3044afe8 100644
--- a/source3/modules/vfs_prealloc.c
+++ b/source3/modules/vfs_prealloc.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
/* Extent preallocation module.
*
diff --git a/source3/modules/vfs_preopen.c b/source3/modules/vfs_preopen.c
index 12a2f9df374..10519c96dce 100644
--- a/source3/modules/vfs_preopen.c
+++ b/source3/modules/vfs_preopen.c
@@ -20,6 +20,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "smbd/smbd.h"
struct preopen_state;
diff --git a/source3/modules/vfs_readahead.c b/source3/modules/vfs_readahead.c
index 0fd745d66a2..b9dbece94e0 100644
--- a/source3/modules/vfs_readahead.c
+++ b/source3/modules/vfs_readahead.c
@@ -17,6 +17,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "smbd/smbd.h"
struct readahead_data {
SMB_OFF_T off_bound;
diff --git a/source3/modules/vfs_readonly.c b/source3/modules/vfs_readonly.c
index c19f5941bee..2b09d882bd7 100644
--- a/source3/modules/vfs_readonly.c
+++ b/source3/modules/vfs_readonly.c
@@ -21,6 +21,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "getdate.h"
/*
diff --git a/source3/modules/vfs_recycle.c b/source3/modules/vfs_recycle.c
index 607ce3a4b83..110acad75af 100644
--- a/source3/modules/vfs_recycle.c
+++ b/source3/modules/vfs_recycle.c
@@ -23,6 +23,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
diff --git a/source3/modules/vfs_scannedonly.c b/source3/modules/vfs_scannedonly.c
index db18a077f50..bc9ae6468f5 100644
--- a/source3/modules/vfs_scannedonly.c
+++ b/source3/modules/vfs_scannedonly.c
@@ -48,6 +48,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
#include "config.h"
diff --git a/source3/modules/vfs_shadow_copy.c b/source3/modules/vfs_shadow_copy.c
index b597644869b..cf911d7a708 100644
--- a/source3/modules/vfs_shadow_copy.c
+++ b/source3/modules/vfs_shadow_copy.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
/*
Please read the VFS module Samba-HowTo-Collection.
diff --git a/source3/modules/vfs_shadow_copy2.c b/source3/modules/vfs_shadow_copy2.c
index 788270cf151..654e01161c4 100644
--- a/source3/modules/vfs_shadow_copy2.c
+++ b/source3/modules/vfs_shadow_copy2.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
/*
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c
index 1e1732d24bb..a8a6cb75a7e 100644
--- a/source3/modules/vfs_smb_traffic_analyzer.c
+++ b/source3/modules/vfs_smb_traffic_analyzer.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "../smbd/globals.h"
#include "../lib/crypto/crypto.h"
#include "vfs_smb_traffic_analyzer.h"
diff --git a/source3/modules/vfs_solarisacl.c b/source3/modules/vfs_solarisacl.c
index 4e0cd475a85..04b8e4ebc45 100644
--- a/source3/modules/vfs_solarisacl.c
+++ b/source3/modules/vfs_solarisacl.c
@@ -19,6 +19,7 @@
#include "includes.h"
+#include "smbd/smbd.h"
/* typedef struct acl SOLARIS_ACE_T; */
diff --git a/source3/modules/vfs_streams_depot.c b/source3/modules/vfs_streams_depot.c
index ac0b95a63b9..0f948200230 100644
--- a/source3/modules/vfs_streams_depot.c
+++ b/source3/modules/vfs_streams_depot.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
#undef DBGC_CLASS
diff --git a/source3/modules/vfs_streams_xattr.c b/source3/modules/vfs_streams_xattr.c
index 6912a8b6109..19cded66340 100644
--- a/source3/modules/vfs_streams_xattr.c
+++ b/source3/modules/vfs_streams_xattr.c
@@ -22,6 +22,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "system/filesys.h"
#include "../lib/crypto/md5.h"
diff --git a/source3/modules/vfs_syncops.c b/source3/modules/vfs_syncops.c
index a828e921656..22044f99469 100644
--- a/source3/modules/vfs_syncops.c
+++ b/source3/modules/vfs_syncops.c
@@ -21,6 +21,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "smbd/smbd.h"
/*
diff --git a/source3/modules/vfs_time_audit.c b/source3/modules/vfs_time_audit.c
index d692529a345..84d6b6eec27 100644
--- a/source3/modules/vfs_time_audit.c
+++ b/source3/modules/vfs_time_audit.c
@@ -26,6 +26,7 @@
#include "includes.h"
+#include "smbd/smbd.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_VFS
diff --git a/source3/modules/vfs_tru64acl.c b/source3/modules/vfs_tru64acl.c
index a9788684449..de3c415863f 100644
--- a/source3/modules/vfs_tru64acl.c
+++ b/source3/modules/vfs_tru64acl.c
@@ -18,6 +18,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
/* prototypes for private functions first - for clarity */
diff --git a/source3/modules/vfs_tsmsm.c b/source3/modules/vfs_tsmsm.c
index 6383891913f..d53d2918322 100644
--- a/source3/modules/vfs_tsmsm.c
+++ b/source3/modules/vfs_tsmsm.c
@@ -39,6 +39,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#ifndef USE_DMAPI
#error "This module requires DMAPI support!"
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c
index b98ebb3df60..5b62565d62f 100644
--- a/source3/modules/vfs_xattr_tdb.c
+++ b/source3/modules/vfs_xattr_tdb.c
@@ -19,6 +19,7 @@
#include "includes.h"
#include "system/filesys.h"
+#include "smbd/smbd.h"
#include "librpc/gen_ndr/xattr.h"
#include "librpc/gen_ndr/ndr_xattr.h"
#include "../librpc/gen_ndr/ndr_netlogon.h"
diff --git a/source3/modules/vfs_zfsacl.c b/source3/modules/vfs_zfsacl.c
index c5277a6b2c4..2dbc2b92c4e 100644
--- a/source3/modules/vfs_zfsacl.c
+++ b/source3/modules/vfs_zfsacl.c
@@ -23,6 +23,7 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
#include "nfs4_acls.h"
#if HAVE_FREEBSD_SUNACL_H