This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] building iconv files in glibc-2-2-branch

Art Haas <> writes:

|> Hi.
|> I'm building the glibc-2-2-branch version of the library, and
|> needed the following small patch to get a couple of the files
|> in the iconv subdirectory to build.
|> The error I was seeing was ...
|> In file included from ../locale/programs/charmap.c:34:
|> ../locale/programs/localedef.h:102: `__LC_LAST' undeclared here (not in a function)
|> ../locale/programs/localedef.h:104: `__LC_LAST' undeclared here (not in a function)
|> ../locale/programs/localedef.h:106: `__LC_LAST' undeclared here (not in a function)

Please try this patch:

2001-12-09  Ulrich Drepper  <>

	* include/locale.h: Define __LC_LAST.

Index: include/locale.h
RCS file: /cvs/glibc/libc/include/locale.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -a -u -r1.3 -r1.4
--- include/locale.h	2001/08/14 22:38:16	1.3
+++ include/locale.h	2001/12/10 01:34:55	1.4
@@ -1,6 +1,9 @@
 #ifndef	_LOCALE_H
 #include <locale/locale.h>
+/* This has to be changed whenever a new locale is defined.  */
+#define __LC_LAST	13
 /* Locale object for C locale.  */
 extern struct __locale_struct _nl_C_locobj;


Andreas Schwab, SuSE Labs,
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]