From 0f5262917fab34b44b43f63946fdf6bb0621875a Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 19 Sep 2020 13:55:23 +0200 Subject: Make all required includes explicit Information as seen by IWYU 0.12 + clang 9 on Linux --- freebsd/FreeBSDProcess.h | 8 ++++++++ freebsd/FreeBSDProcessList.c | 25 ++++++++++++++----------- freebsd/FreeBSDProcessList.h | 10 ++++++++-- 3 files changed, 30 insertions(+), 13 deletions(-) (limited to 'freebsd') diff --git a/freebsd/FreeBSDProcess.h b/freebsd/FreeBSDProcess.h index 25094848..36657060 100644 --- a/freebsd/FreeBSDProcess.h +++ b/freebsd/FreeBSDProcess.h @@ -7,6 +7,14 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include + +#include "Object.h" +#include "Process.h" +#include "RichString.h" +#include "Settings.h" + + typedef enum FreeBSDProcessFields_ { // Add platform-specific fields here, with ids >= 100 JID = 100, diff --git a/freebsd/FreeBSDProcessList.c b/freebsd/FreeBSDProcessList.c index 92620c9b..62969876 100644 --- a/freebsd/FreeBSDProcessList.c +++ b/freebsd/FreeBSDProcessList.c @@ -5,24 +5,27 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "Macros.h" -#include "ProcessList.h" #include "FreeBSDProcessList.h" -#include "FreeBSDProcess.h" -#include "zfs/ZfsArcStats.h" -#include "zfs/openzfs_sysctl.h" -#include "Macros.h" -#include -#include -#include -#include -#include +#include #include #include #include +#include #include #include +#include +#include +#include +#include + +#include "FreeBSDProcess.h" +#include "Macros.h" +#include "ProcessList.h" +#include "zfs/ZfsArcStats.h" +#include "zfs/openzfs_sysctl.h" +#include "XUtils.h" + char jail_errmsg[JAIL_ERRMSGLEN]; diff --git a/freebsd/FreeBSDProcessList.h b/freebsd/FreeBSDProcessList.h index 064433b3..75f71c12 100644 --- a/freebsd/FreeBSDProcessList.h +++ b/freebsd/FreeBSDProcessList.h @@ -7,14 +7,20 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "zfs/ZfsArcStats.h" - #include #include #include #include #include +#include "FreeBSDProcess.h" +#include "Hashtable.h" +#include "Process.h" +#include "ProcessList.h" +#include "UsersTable.h" +#include "zfs/ZfsArcStats.h" + + #define JAIL_ERRMSGLEN 1024 extern char jail_errmsg[JAIL_ERRMSGLEN]; -- cgit v1.2.3