[libgtop] Add various headers to unbreak compilation



commit 02070b7170f98b1b00d6923b00f5ac48f31f0ef2
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date:   Fri Dec 11 15:03:49 2015 +0100

    Add various headers to unbreak compilation

 sysdeps/openbsd/open.c          |    1 +
 sysdeps/openbsd/procopenfiles.c |    1 +
 sysdeps/openbsd/suid_open.c     |    3 +++
 sysdeps/openbsd/uptime.c        |    2 ++
 4 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/sysdeps/openbsd/open.c b/sysdeps/openbsd/open.c
index ad945e9..c6ee970 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 8ac57db..a651da3 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 ef5d2e2..b6b202f 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 82252a5..11a2a99 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]