diff options
author | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2015-04-02 20:31:17 +0200 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2015-04-02 20:31:17 +0200 |
commit | ae50bbe2575e8e3234a70f89a7897b544cc4f3f0 (patch) | |
tree | 8125b5cbef00719a480b79b56758b74fb8f35d28 /src/print_cpu_usage.c | |
parent | 018702e01e0e60705cbbca861c5f54abcd41dc00 (diff) |
sys/dkstat.h has been removed from OpenBSD and it's functionality actually lived/lives in sys/sched.h
Diffstat (limited to 'src/print_cpu_usage.c')
-rw-r--r-- | src/print_cpu_usage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/print_cpu_usage.c b/src/print_cpu_usage.c index 2c59f69..927e763 100644 --- a/src/print_cpu_usage.c +++ b/src/print_cpu_usage.c @@ -10,8 +10,12 @@ #include <sys/param.h> #include <sys/types.h> #include <sys/sysctl.h> +#if defined(__OpenBSD__) +#include <sys/sched.h> +#else #include <sys/dkstat.h> #endif +#endif #if defined(__DragonFly__) #include <sys/param.h> |