[libgtop] Fix Darwin build. Patch by David Evans. Bug https://bugzilla.gnome.org/show_bug.cgi?id=753743 .



commit eec96d8ae86219f2ba3df2275a68650b865848e2
Author: Benoît Dejean <bdejean gmail com>
Date:   Tue Aug 18 16:43:00 2015 +0200

    Fix Darwin build.
    Patch by  David Evans.
    Bug https://bugzilla.gnome.org/show_bug.cgi?id=753743 .

 NEWS                          |    5 +++++
 sysdeps/darwin/glibtop_suid.h |    2 ++
 sysdeps/darwin/open.c         |    2 ++
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 0d91285..78e3611 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+18 August 2015: Overview of changes in 2.31.90.1
+================================================
+* Darwin:
+  - Fixed build.
+
 16 August 2015: Overview of changes in 2.31.90
 =============================================
 * ABI changes:
diff --git a/sysdeps/darwin/glibtop_suid.h b/sysdeps/darwin/glibtop_suid.h
index 165a4d4..df8edd0 100644
--- a/sysdeps/darwin/glibtop_suid.h
+++ b/sysdeps/darwin/glibtop_suid.h
@@ -22,6 +22,8 @@
 
 G_BEGIN_DECLS
 
+#include <glibtop_machine.h>
+
 static inline void glibtop_suid_enter (glibtop *server) {
        setreuid (server->machine->uid, server->machine->euid);
 };
diff --git a/sysdeps/darwin/open.c b/sysdeps/darwin/open.c
index 4fc77ac..577b519 100644
--- a/sysdeps/darwin/open.c
+++ b/sysdeps/darwin/open.c
@@ -23,6 +23,8 @@
 #include <glibtop/cpu.h>
 #include <glibtop/open.h>
 
+#include <glibtop_machine.h>
+
 #include <mach/mach_host.h>
 #include <mach/mach_init.h>
 #include <mach/mach_interface.h>


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