]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
forward: also include paths.h
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 8 Jun 2025 23:33:36 +0000 (08:33 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jun 2025 13:45:23 +0000 (22:45 +0900)
It provides several important constants, especially _PATH_BSHELL, which
is used in PID1, executor, and run. The header has been included
indirectly through e.g. libmount.h, mntent.h, utmpx.h, and so on.
Let's explicitly include it in forward.h, as libmount.h and friends that
includes paths.h are irrelevant to _PATH_BSHELL, and we may easily fail
to build when code is touched.
The header is not heavy, hence should not hurt anything.

src/basic/forward.h

index df3bdee2336923a200f09a6c8b5d54dd595827e0..5ca540ae01ed40e79b66e8a7c6464cde791967c7 100644 (file)
@@ -6,6 +6,7 @@
 #include <errno.h>              /* IWYU pragma: export */
 #include <inttypes.h>           /* IWYU pragma: export */
 #include <limits.h>             /* IWYU pragma: export */
+#include <paths.h>              /* IWYU pragma: export */
 #include <stdarg.h>             /* IWYU pragma: export */
 #include <stdbool.h>            /* IWYU pragma: export */
 #include <stddef.h>             /* IWYU pragma: export */