Add various headers to unbreak compilation

This commit is contained in:
Jasper Lievisse Adriaanse
2015-12-11 15:03:49 +01:00
parent fcfacf3213
commit 02070b7170
4 changed files with 7 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
#include <config.h> #include <config.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/sysctl.h>
#include <glibtop.h> #include <glibtop.h>
#include <glibtop/open.h> #include <glibtop/open.h>
#include <glibtop/cpu.h> #include <glibtop/cpu.h>

View File

@@ -42,6 +42,7 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <kvm.h>
#include "glibtop_private.h" #include "glibtop_private.h"

View File

@@ -27,6 +27,9 @@
#include <glibtop/init_hooks.h> #include <glibtop/init_hooks.h>
#include <glibtop/machine.h> #include <glibtop/machine.h>
#include <fcntl.h>
#include <kvm.h>
/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */ /* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */
void void

View File

@@ -26,6 +26,8 @@
#include <glibtop/cpu.h> #include <glibtop/cpu.h>
#include <sys/sysctl.h>
static const unsigned long _glibtop_sysdeps_uptime = static const unsigned long _glibtop_sysdeps_uptime =
(1L << GLIBTOP_UPTIME_UPTIME) + (1L << GLIBTOP_UPTIME_IDLETIME) + (1L << GLIBTOP_UPTIME_UPTIME) + (1L << GLIBTOP_UPTIME_IDLETIME) +
(1UL << GLIBTOP_UPTIME_BOOT_TIME); (1UL << GLIBTOP_UPTIME_BOOT_TIME);