diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-04-02 13:13:34 -0700 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-04-02 13:13:34 -0700 |
commit | e58cf99d859f8fc9fac78b0177520743a1d5176a (patch) | |
tree | 8125b5cbef00719a480b79b56758b74fb8f35d28 | |
parent | 018702e01e0e60705cbbca861c5f54abcd41dc00 (diff) | |
parent | ae50bbe2575e8e3234a70f89a7897b544cc4f3f0 (diff) |
Merge pull request #18 from jasperla/sched_h
sys/dkstat.h has been removed from OpenBSD and it's functionality actual...
-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> |