From 2d7dfe3d68c39f11afdece3281f9fbca0b48fb3f Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 22 Sep 2014 19:21:42 +1000 Subject: 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 Reviewed-by: Jeremy Allison --- lib/util/xfile.c | 3 ++- lib/util/xfile.h | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/util/xfile.c b/lib/util/xfile.c index 58a34bf1c3..62dd1213a7 100644 --- a/lib/util/xfile.c +++ b/lib/util/xfile.c @@ -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 diff --git a/lib/util/xfile.h b/lib/util/xfile.h index 1b15929997..f52596dc8a 100644 --- a/lib/util/xfile.h +++ b/lib/util/xfile.h @@ -19,6 +19,12 @@ #ifndef _XFILE_H_ #define _XFILE_H_ + +#include +#include +#include +#include "attr.h" + /* see xfile.c for explanations */ -- cgit