[libgtop] Fix compilation because glibtop_machine definition has moved.



commit 7925f83b57cb10b001f4e46e0962510a7c3a5fdf
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date:   Fri Dec 11 14:57:34 2015 +0100

    Fix compilation because glibtop_machine definition has moved.

 sysdeps/openbsd/glibtop_suid.h |    2 ++
 sysdeps/openbsd/suid_open.c    |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/sysdeps/openbsd/glibtop_suid.h b/sysdeps/openbsd/glibtop_suid.h
index 253c1d5..6b9a5a9 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 c688322..ef5d2e2 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 !!! */
 


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