summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@gmail.com>2015-08-18 16:43:00 +0200
committerBenoît Dejean <bdejean@gmail.com>2015-08-18 16:43:00 +0200
commiteec96d8ae86219f2ba3df2275a68650b865848e2 (patch)
tree3eaf8734c7842c913632aa792f9986a588b4fa1b
parentd10a584e40b068ae2d50a0cc5c098130aac3a472 (diff)
downloadlibgtop-eec96d8ae86219f2ba3df2275a68650b865848e2.tar.gz
Fix Darwin build.
Patch by David Evans. Bug https://bugzilla.gnome.org/show_bug.cgi?id=753743 .
-rw-r--r--NEWS5
-rw-r--r--sysdeps/darwin/glibtop_suid.h2
-rw-r--r--sysdeps/darwin/open.c2
3 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 0d912850..78e3611d 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 165a4d45..df8edd00 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 4fc77ac1..577b5193 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>