g_check_setuid: Include glib-private.h
authorColin Walters <walters@verbum.org>
Thu, 1 Nov 2012 23:37:57 +0000 (19:37 -0400)
committerColin Walters <walters@verbum.org>
Fri, 2 Nov 2012 13:03:35 +0000 (09:03 -0400)
Otherwise we fail to build with -Werror=missing-prototypes.

https://bugzilla.gnome.org/show_bug.cgi?id=687385

glib/gutils.c

index a34923d..747e5b2 100644 (file)
@@ -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.