]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Avoid an #include includes.h
authorVolker Lendecke <vl@samba.org>
Thu, 17 Mar 2022 15:10:57 +0000 (16:10 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 27 Oct 2022 18:18:36 +0000 (18:18 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/cleanupdb.c
source3/lib/cleanupdb.h

index 93d6acc9e44db4506562ff9586c1918decd56dad..1b3c5a21f1d32a736c75628b0f6608da9b658d30 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#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;
index 71dd6955168e44302940d33bc7a7f0f095d6986d..83f51bb0cd07ae65c65d5d9e0210dd80a099fc5f 100644 (file)
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#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