From 5af39444404ad71541d95fcd66abd5c032e4bf07 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 29 Jan 2023 04:15:25 +0000 Subject: [PATCH] librc: missing includes from IWYU --- src/librc/librc-daemon.c | 11 +++++++++++ src/librc/librc-depend.c | 13 +++++++++++++ src/librc/librc-misc.c | 10 ++++++++++ src/librc/librc-stringlist.c | 6 ++++++ src/librc/librc.c | 19 ++++++++++++++++++- src/librc/librc.h | 1 - 6 files changed, 58 insertions(+), 2 deletions(-) diff --git a/src/librc/librc-daemon.c b/src/librc/librc-daemon.c index ec02e8b7..50245129 100644 --- a/src/librc/librc-daemon.c +++ b/src/librc/librc-daemon.c @@ -15,10 +15,21 @@ * except according to the terms contained in the LICENSE file. */ +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include #include "queue.h" #include "librc.h" +#include "helpers.h" #if defined(__linux__) || (defined (__FreeBSD_kernel__) && defined(__GLIBC__)) \ || defined(__GNU__) diff --git a/src/librc/librc-depend.c b/src/librc/librc-depend.c index 03149a52..d584af2c 100644 --- a/src/librc/librc-depend.c +++ b/src/librc/librc-depend.c @@ -16,9 +16,22 @@ */ #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "queue.h" #include "librc.h" +#include "helpers.h" +#include "misc.h" #define GENDEP RC_LIBEXECDIR "/sh/gendepends.sh" diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c index 9dfbaec0..575bcfce 100644 --- a/src/librc/librc-misc.c +++ b/src/librc/librc-misc.c @@ -16,11 +16,21 @@ */ #include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include #include "queue.h" #include "librc.h" #include "helpers.h" +#include "misc.h" bool rc_yesno(const char *value) diff --git a/src/librc/librc-stringlist.c b/src/librc/librc-stringlist.c index ee352c5f..7fa7bd4d 100644 --- a/src/librc/librc-stringlist.c +++ b/src/librc/librc-stringlist.c @@ -15,8 +15,14 @@ * except according to the terms contained in the LICENSE file. */ +#include +#include +#include +#include + #include "queue.h" #include "librc.h" +#include "helpers.h" RC_STRINGLIST * rc_stringlist_new(void) diff --git a/src/librc/librc.c b/src/librc/librc.c index 34598529..da2ed4d0 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -15,9 +15,26 @@ * except according to the terms contained in the LICENSE file. */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include "queue.h" #include "librc.h" -#include +#include "misc.h" +#include "rc.h" #ifdef __FreeBSD__ # include #endif diff --git a/src/librc/librc.h b/src/librc/librc.h index 09ab9276..260720ee 100644 --- a/src/librc/librc.h +++ b/src/librc/librc.h @@ -25,7 +25,6 @@ #include #include #include - #include #include #include