[PATCH] Nautilus compile error



Hi,
as consequence of this patch[1], I get the following error when
compiling nautilus on gentoo:

nautilus-file-operations.c:2722: error: `LC_MESSAGES' undeclared (first
use in this function)

which seems is due to I have no LC_MESSAGES environment variable:
nelson gnelson ~ $ locale
LANG=es_ES
LC_CTYPE="es_ES"
LC_NUMERIC="es_ES"
LC_TIME="es_ES"
LC_COLLATE="es_ES"
LC_MONETARY="es_ES"
LC_MESSAGES="es_ES"
LC_PAPER="es_ES"
LC_NAME="es_ES"
LC_ADDRESS="es_ES"
LC_TELEPHONE="es_ES"
LC_MEASUREMENT="es_ES"
LC_IDENTIFICATION="es_ES"
LC_ALL=
nelson gnelson ~ $

So people in this situation needs to include locale.h, and so the patch
I attach. Google for "LC_MESSAGES undeclared" for more info.

[1]
http://mail.gnome.org/archives/nautilus-list/2005-September/msg00130.html
--- nautilus-file-operations.c.cvs	2005-10-22 11:28:32.000000000 +0000
+++ nautilus-file-operations.c	2005-10-22 12:14:58.000000000 +0000
@@ -27,6 +27,7 @@
 #include <config.h>
 #include <string.h>
 #include <stdio.h>
+#include <locale.h>
 #include "nautilus-file-operations.h"
 
 #include "nautilus-file-operations-progress.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]