[glib] g_check_setuid: Include glib-private.h
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] g_check_setuid: Include glib-private.h
- Date: Fri, 2 Nov 2012 13:05:34 +0000 (UTC)
commit bd8387f25affe2f5780b57daf4fd3f01daf0c43d
Author: Colin Walters <walters verbum org>
Date: Thu Nov 1 19:37:57 2012 -0400
g_check_setuid: Include glib-private.h
Otherwise we fail to build with -Werror=missing-prototypes.
https://bugzilla.gnome.org/show_bug.cgi?id=687385
glib/gutils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/glib/gutils.c b/glib/gutils.c
index a34923d..747e5b2 100644
--- a/glib/gutils.c
+++ b/glib/gutils.c
@@ -60,6 +60,7 @@
#include "gutils.h"
#include "glib-init.h"
+#include "glib-private.h"
#include "genviron.h"
#include "gfileutils.h"
#include "ggettext.h"
@@ -2416,7 +2417,7 @@ g_get_tmp_dir (void)
* equivalent __libc_enable_secure is available). See:
* http://osdir.com/ml/linux.lfs.hardened/2007-04/msg00032.html
*/
-gboolean
+G_GNUC_INTERNAL gboolean
g_check_setuid (void)
{
/* TODO: get __libc_enable_secure exported from glibc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]