summaryrefslogtreecommitdiff
path: root/src/print_cpu_usage.c
diff options
context:
space:
mode:
authorMichael Stapelberg <stapelberg@users.noreply.github.com>2015-04-02 13:13:34 -0700
committerMichael Stapelberg <stapelberg@users.noreply.github.com>2015-04-02 13:13:34 -0700
commite58cf99d859f8fc9fac78b0177520743a1d5176a (patch)
tree8125b5cbef00719a480b79b56758b74fb8f35d28 /src/print_cpu_usage.c
parent018702e01e0e60705cbbca861c5f54abcd41dc00 (diff)
parentae50bbe2575e8e3234a70f89a7897b544cc4f3f0 (diff)
Merge pull request #18 from jasperla/sched_h
sys/dkstat.h has been removed from OpenBSD and it's functionality actual...
Diffstat (limited to 'src/print_cpu_usage.c')
-rw-r--r--src/print_cpu_usage.c4
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>