diff options
author | Benny Baumann <BenBE@geshi.org> | 2021-05-22 09:24:30 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-05-22 18:16:11 +0200 |
commit | 07a4657a4744de919854b4c38c688861a0469233 (patch) | |
tree | e2bc1ef1ffd40695255162b20eb773d8363579d9 /dragonflybsd | |
parent | 2c8353e7cf0051c34f505e9408cce371ab87bfca (diff) |
DragonFlyBSD: Fix included headers
Diffstat (limited to 'dragonflybsd')
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcess.c | 6 | ||||
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcess.h | 7 | ||||
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcessList.c | 11 | ||||
-rw-r--r-- | dragonflybsd/DragonFlyBSDProcessList.h | 9 | ||||
-rw-r--r-- | dragonflybsd/Platform.c | 3 | ||||
-rw-r--r-- | dragonflybsd/Platform.h | 5 |
6 files changed, 29 insertions, 12 deletions
diff --git a/dragonflybsd/DragonFlyBSDProcess.c b/dragonflybsd/DragonFlyBSDProcess.c index 07a765e7..7322f091 100644 --- a/dragonflybsd/DragonFlyBSDProcess.c +++ b/dragonflybsd/DragonFlyBSDProcess.c @@ -13,11 +13,11 @@ in the source distribution for its full text. #include <unistd.h> #include <sys/syscall.h> -#include "Process.h" -#include "ProcessList.h" -#include "dragonflybsd/Platform.h" #include "CRT.h" +#include "dragonflybsd/Platform.h" + + const ProcessFieldData Process_fields[LAST_PROCESSFIELD] = { [0] = { .name = "", .title = NULL, .description = NULL, .flags = 0, }, [PID] = { .name = "PID", .title = "PID", .description = "Process/thread ID", .flags = 0, .pidColumn = true, }, diff --git a/dragonflybsd/DragonFlyBSDProcess.h b/dragonflybsd/DragonFlyBSDProcess.h index dc40a993..4b086af2 100644 --- a/dragonflybsd/DragonFlyBSDProcess.h +++ b/dragonflybsd/DragonFlyBSDProcess.h @@ -8,6 +8,13 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include <stdbool.h> + +#include "Object.h" +#include "Process.h" +#include "Settings.h" + + typedef struct DragonFlyBSDProcess_ { Process super; int kernel; diff --git a/dragonflybsd/DragonFlyBSDProcessList.c b/dragonflybsd/DragonFlyBSDProcessList.c index 41f557ba..42245e22 100644 --- a/dragonflybsd/DragonFlyBSDProcessList.c +++ b/dragonflybsd/DragonFlyBSDProcessList.c @@ -8,19 +8,20 @@ in the source distribution for its full text. #include "dragonflybsd/DragonFlyBSDProcessList.h" -#include <unistd.h> +#include <fcntl.h> +#include <limits.h> +#include <stddef.h> #include <stdlib.h> +#include <string.h> +#include <unistd.h> #include <sys/types.h> #include <sys/sysctl.h> #include <sys/user.h> -#include <fcntl.h> -#include <limits.h> -#include <string.h> #include <sys/param.h> #include "CRT.h" #include "Macros.h" -#include "ProcessList.h" + #include "dragonflybsd/DragonFlyBSDProcess.h" diff --git a/dragonflybsd/DragonFlyBSDProcessList.h b/dragonflybsd/DragonFlyBSDProcessList.h index d596054c..775be5c7 100644 --- a/dragonflybsd/DragonFlyBSDProcessList.h +++ b/dragonflybsd/DragonFlyBSDProcessList.h @@ -8,13 +8,18 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ +#include <sys/types.h> // required for kvm.h #include <kvm.h> -#include <sys/param.h> #include <osreldate.h> +#include <stdbool.h> #include <sys/jail.h> -#include <sys/uio.h> +#include <sys/param.h> #include <sys/resource.h> +#include <sys/uio.h> + #include "Hashtable.h" +#include "ProcessList.h" +#include "UsersTable.h" #include "dragonflybsd/DragonFlyBSDProcess.h" diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index f81078d7..8a3a61b0 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -22,9 +22,8 @@ in the source distribution for its full text. #include "DateTimeMeter.h" #include "HostnameMeter.h" #include "LoadAverageMeter.h" -#include "Macros.h" #include "MemoryMeter.h" -#include "Meter.h" +#include "ProcessList.h" #include "SwapMeter.h" #include "SysArchMeter.h" #include "TasksMeter.h" diff --git a/dragonflybsd/Platform.h b/dragonflybsd/Platform.h index 87c124d9..e5402c00 100644 --- a/dragonflybsd/Platform.h +++ b/dragonflybsd/Platform.h @@ -9,12 +9,17 @@ in the source distribution for its full text. */ #include <stdbool.h> +#include <stddef.h> +#include <stdint.h> #include <sys/types.h> #include "Action.h" #include "BatteryMeter.h" #include "DiskIOMeter.h" +#include "Macros.h" +#include "Meter.h" #include "NetworkIOMeter.h" +#include "Process.h" #include "ProcessLocksScreen.h" #include "SignalsPanel.h" #include "generic/gettime.h" |