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
This commit is contained in:
Colin Walters 2012-11-01 19:37:57 -04:00
parent 139892734e
commit bd8387f25a

View File

@ -60,6 +60,7 @@
#include "gutils.h" #include "gutils.h"
#include "glib-init.h" #include "glib-init.h"
#include "glib-private.h"
#include "genviron.h" #include "genviron.h"
#include "gfileutils.h" #include "gfileutils.h"
#include "ggettext.h" #include "ggettext.h"
@ -2416,7 +2417,7 @@ g_get_tmp_dir (void)
* equivalent __libc_enable_secure is available). See: * equivalent __libc_enable_secure is available). See:
* http://osdir.com/ml/linux.lfs.hardened/2007-04/msg00032.html * http://osdir.com/ml/linux.lfs.hardened/2007-04/msg00032.html
*/ */
gboolean G_GNUC_INTERNAL gboolean
g_check_setuid (void) g_check_setuid (void)
{ {
/* TODO: get __libc_enable_secure exported from glibc. /* TODO: get __libc_enable_secure exported from glibc.