summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2022-04-21 12:20:20 +0200
committerJeremy Allison <jra@samba.org>2022-04-26 21:41:29 +0000
commit734e43775509f9a23b7d97eecf5b095167a4694c (patch)
tree1cb59c2ed076489d506f4fc70c4a07878a13a632 /source3
parent540502369633ed163b682af916e94019907024d7 (diff)
downloadsamba-734e43775509f9a23b7d97eecf5b095167a4694c.tar.gz
smbd: fd_handle.h does not need includes.h
Move includes.h for struct files_struct to fd_handle.c. Both printing.c and smb1_utils.c depended on fd_handle.h to include the prototypes. Do that explicitly in those files. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/printing/printing.c1
-rw-r--r--source3/smbd/fd_handle.c1
-rw-r--r--source3/smbd/fd_handle.h7
-rw-r--r--source3/smbd/smb1_utils.c2
4 files changed, 8 insertions, 3 deletions
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 67d798fbb21..82903359fc3 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -20,6 +20,7 @@
*/
#include "includes.h"
+#include "smbd/globals.h"
#include "system/syslog.h"
#include "system/filesys.h"
#include "printing.h"
diff --git a/source3/smbd/fd_handle.c b/source3/smbd/fd_handle.c
index 94d15ef848b..e599181fe6b 100644
--- a/source3/smbd/fd_handle.c
+++ b/source3/smbd/fd_handle.c
@@ -17,6 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "includes.h"
#include "fd_handle.h"
struct fd_handle {
diff --git a/source3/smbd/fd_handle.h b/source3/smbd/fd_handle.h
index 052db1d40c5..dc0e5e43940 100644
--- a/source3/smbd/fd_handle.h
+++ b/source3/smbd/fd_handle.h
@@ -20,9 +20,10 @@
#ifndef FD_HANDLE_H
#define FD_HANDLE_H
-#include "includes.h"
-#include "smbd/smbd.h"
-#include "smbd/globals.h"
+#include "replace.h"
+#include <talloc.h>
+
+struct fd_handle;
struct fd_handle *fd_handle_create(TALLOC_CTX *mem_ctx);
diff --git a/source3/smbd/smb1_utils.c b/source3/smbd/smb1_utils.c
index dadbbeefe00..a5ac28c584a 100644
--- a/source3/smbd/smb1_utils.c
+++ b/source3/smbd/smb1_utils.c
@@ -20,6 +20,8 @@
*/
#include "includes.h"
+#include "smbd/smbd.h"
+#include "smbd/globals.h"
#include "libcli/security/security.h"
#include "lib/util/sys_rw_data.h"
#include "smbd/fd_handle.h"