1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

lib/util: Clean up includes for xfile.[ch]

The include files added to xfile.h are already included
unconditionally elsewhere (replace.h, samba_util.h, ...) so Samba
can't be built without them.

To minimise dependencies, only include specific util headers instead
of samba_util.h.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Martin Schwenke 2014-09-22 19:21:42 +10:00 committed by Jeremy Allison
parent 3d6675fd1e
commit 2d7dfe3d68
2 changed files with 8 additions and 1 deletions

View File

@ -35,7 +35,8 @@
#include "replace.h"
#include "system/filesys.h"
#include "lib/util/samba_util.h"
#include "memory.h"
#include "xfile.h"
#define XBUFSIZE BUFSIZ

View File

@ -19,6 +19,12 @@
#ifndef _XFILE_H_
#define _XFILE_H_
#include <stdarg.h>
#include <stddef.h>
#include <sys/stat.h>
#include "attr.h"
/*
see xfile.c for explanations
*/