summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2015-12-11 14:57:34 +0100
committerJasper Lievisse Adriaanse <jasper@humppa.nl>2015-12-11 14:57:34 +0100
commit7925f83b57cb10b001f4e46e0962510a7c3a5fdf (patch)
treeb9089d58400b5753c752cb17c76e9ac3e779bdc5 /sysdeps
parent68104bdde1d873d44bc5ab31f928ee624dbd3c2c (diff)
downloadlibgtop-7925f83b57cb10b001f4e46e0962510a7c3a5fdf.tar.gz
Fix compilation because glibtop_machine definition has moved.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/openbsd/glibtop_suid.h2
-rw-r--r--sysdeps/openbsd/suid_open.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/openbsd/glibtop_suid.h b/sysdeps/openbsd/glibtop_suid.h
index 253c1d50..6b9a5a9b 100644
--- a/sysdeps/openbsd/glibtop_suid.h
+++ b/sysdeps/openbsd/glibtop_suid.h
@@ -28,6 +28,8 @@ G_BEGIN_DECLS
#include <sys/param.h>
#endif
+#include <glibtop_machine.h>
+
#define KI_PROC(ki) (&(ki))->kp_proc)
#define KI_EPROC(ki) (&(ki))->kp_eproc)
diff --git a/sysdeps/openbsd/suid_open.c b/sysdeps/openbsd/suid_open.c
index c6883223..ef5d2e26 100644
--- a/sysdeps/openbsd/suid_open.c
+++ b/sysdeps/openbsd/suid_open.c
@@ -25,7 +25,7 @@
#include <glibtop/cpu.h>
#include <glibtop/open.h>
#include <glibtop/init_hooks.h>
-
+#include <glibtop/machine.h>
/* !!! THIS FUNCTION RUNS SUID ROOT - CHANGE WITH CAUTION !!! */