From eec96d8ae86219f2ba3df2275a68650b865848e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= Date: Tue, 18 Aug 2015 16:43:00 +0200 Subject: [PATCH] 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(+) 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 + 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 #include +#include + #include #include #include