[gnome-session] tools: Fix inhibit tool build
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-session] tools: Fix inhibit tool build
- Date: Wed, 7 Nov 2012 11:51:20 +0000 (UTC)
commit f6a9ab48d29a99a1d696035a085ed8a19c33bbb8
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 7 12:50:12 2012 +0100
tools: Fix inhibit tool build
gnome-session-inhibit.c: In function âmainâ:
gnome-session-inhibit.c:151:3: warning: implicit declaration of function âsetlocaleâ [-Wimplicit-function-declaration]
gnome-session-inhibit.c:151:3: warning: nested extern declaration of âsetlocaleâ [-Wnested-externs]
gnome-session-inhibit.c:151:14: error: âLC_ALLâ undeclared (first use in this function)
gnome-session-inhibit.c:151:14: note: each undeclared identifier is reported only once for each function it appears in
tools/gnome-session-inhibit.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tools/gnome-session-inhibit.c b/tools/gnome-session-inhibit.c
index f42e846..6473735 100644
--- a/tools/gnome-session-inhibit.c
+++ b/tools/gnome-session-inhibit.c
@@ -24,6 +24,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
+#include <locale.h>
#include <glib.h>
#include <glib/gi18n.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]