From: Volker Lendecke Date: Thu, 17 Mar 2022 15:10:57 +0000 (+0100) Subject: lib: Avoid an #include includes.h X-Git-Tag: talloc-2.4.0~631 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23ba1dabf5da48a5381a67c5a1dda161199ccbb0;p=thirdparty%2Fsamba.git lib: Avoid an #include includes.h Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/cleanupdb.c b/source3/lib/cleanupdb.c index 93d6acc9e44..1b3c5a21f1d 100644 --- a/source3/lib/cleanupdb.c +++ b/source3/lib/cleanupdb.c @@ -17,7 +17,13 @@ along with this program. If not, see . */ -#include "cleanupdb.h" +#include "replace.h" +#include "system/filesys.h" +#include "lib/tdb_wrap/tdb_wrap.h" +#include "lib/util/talloc_stack.h" +#include "lib/util/debug.h" +#include "source3/lib/cleanupdb.h" +#include "source3/lib/util_path.h" struct cleanup_key { pid_t pid; diff --git a/source3/lib/cleanupdb.h b/source3/lib/cleanupdb.h index 71dd6955168..83f51bb0cd0 100644 --- a/source3/lib/cleanupdb.h +++ b/source3/lib/cleanupdb.h @@ -17,10 +17,10 @@ along with this program. If not, see . */ -#include "includes.h" -#include "system/filesys.h" -#include "util_tdb.h" -#include "lib/tdb_wrap/tdb_wrap.h" +#ifndef __LIB_CLEANUPDB_H__ +#define __LIB_CLEANUPDB_H__ + +#include "replace.h" bool cleanupdb_store_child(const pid_t pid, const bool unclean); bool cleanupdb_delete_child(const pid_t pid); @@ -28,3 +28,5 @@ int cleanupdb_traverse_read(int (*fn)(const pid_t pid, const bool cleanup, void *private_data), void *private_data); + +#endif