fsmonitor--daemon.h: remove unnecessary includes

The unnecessary include in the header transitively pulled in some other headers actually needed by source files, though. Have those source files explicitly include the headers they need. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Elijah Newren committed Dec 23, 2023 at 17:14 UTC 31d20faa90c30aa90abc2227cbf65b67f81e98e2
5 files changed +6 -3
builtin/fsmonitor--daemon.c
+2
@@ -1,6 +1,7 @@
1 #include "builtin.h"
2 #include "abspath.h"
3 #include "config.h"
4 +#include "dir.h"
5 #include "environment.h"
6 #include "gettext.h"
7 #include "parse-options.h"
@@ -14,6 +15,7 @@
15 #include "simple-ipc.h"
16 #include "khash.h"
17 #include "pkt-line.h"
18 +#include "run-command.h"
19 #include "trace.h"
20 #include "trace2.h"
21
compat/fsmonitor/fsm-health-win32.c
+1
@@ -4,6 +4,7 @@
4 #include "fsm-health.h"
5 #include "fsmonitor--daemon.h"
6 #include "gettext.h"
7 +#include "simple-ipc.h"
8
9 /*
10 * Every minute wake up and test our health.
compat/fsmonitor/fsm-listen-darwin.c
+1
@@ -29,6 +29,7 @@
29 #include "fsmonitor--daemon.h"
30 #include "fsmonitor-path-utils.h"
31 #include "gettext.h"
32 +#include "simple-ipc.h"
33 #include "string-list.h"
34 #include "trace.h"
35
compat/fsmonitor/fsm-listen-win32.c
+1
@@ -4,6 +4,7 @@
4 #include "fsm-listen.h"
5 #include "fsmonitor--daemon.h"
6 #include "gettext.h"
7 +#include "simple-ipc.h"
8 #include "trace2.h"
9
10 /*
fsmonitor--daemon.h
+1 -3
@@ -3,9 +3,7 @@
3
4 #ifdef HAVE_FSMONITOR_DAEMON_BACKEND
5
6 -#include "dir.h"
7 -#include "run-command.h"
8 -#include "simple-ipc.h"
6 +#include "hashmap.h"
7 #include "thread-utils.h"
8 #include "fsmonitor-path-utils.h"
9