summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2015-12-11 15:03:49 +0100
committerJasper Lievisse Adriaanse <jasper@humppa.nl>2015-12-11 15:03:49 +0100
commit02070b7170f98b1b00d6923b00f5ac48f31f0ef2 (patch)
tree9a4506ade2fc4c3d63e6ed1a704f5ec565290a24
parentfcfacf32133cd0f03ad8dd795c23adcda9b05b3c (diff)
downloadlibgtop-02070b7170f98b1b00d6923b00f5ac48f31f0ef2.tar.gz
Add various headers to unbreak compilation
-rw-r--r--sysdeps/openbsd/open.c1
-rw-r--r--sysdeps/openbsd/procopenfiles.c1
-rw-r--r--sysdeps/openbsd/suid_open.c3
-rw-r--r--sysdeps/openbsd/uptime.c2
4 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/openbsd/open.c b/sysdeps/openbsd/open.c
index ad945e96..c6ee9704 100644
--- a/sysdeps/openbsd/open.c
+++ b/sysdeps/openbsd/open.c
@@ -21,6 +21,7 @@
#include <config.h>
#include <sys/types.h>
+#include <sys/sysctl.h>
#include <glibtop.h>
#include <glibtop/open.h>
#include <glibtop/cpu.h>
diff --git a/sysdeps/openbsd/procopenfiles.c b/sysdeps/openbsd/procopenfiles.c
index 8ac57dba..a651da3e 100644
--- a/sysdeps/openbsd/procopenfiles.c
+++ b/sysdeps/openbsd/procopenfiles.c
@@ -42,6 +42,7 @@
#include <arpa/inet.h>
#include <string.h>
#include <stdlib.h>
+#include <kvm.h>
#include "glibtop_private.h"
diff --git a/sysdeps/openbsd/suid_open.c b/sysdeps/openbsd/suid_open.c
index ef5d2e26..b6b202f6 100644
--- a/sysdeps/openbsd/suid_open.c
+++ b/sysdeps/openbsd/suid_open.c
@@ -27,6 +27,9 @@
#include <glibtop/init_hooks.h>
#include <glibtop/machine.h>
+#include <fcntl.h>
+#include <kvm.h>
+
/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
void
diff --git a/sysdeps/openbsd/uptime.c b/sysdeps/openbsd/uptime.c
index 82252a5b..11a2a994 100644
--- a/sysdeps/openbsd/uptime.c
+++ b/sysdeps/openbsd/uptime.c
@@ -26,6 +26,8 @@
#include <glibtop/cpu.h>
+#include <sys/sysctl.h>
+
static const unsigned long _glibtop_sysdeps_uptime =
(1L << GLIBTOP_UPTIME_UPTIME) + (1L << GLIBTOP_UPTIME_IDLETIME) +
(1UL << GLIBTOP_UPTIME_BOOT_TIME);