This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: [PATCH] building iconv files in glibc-2-2-branch
- From: Andreas Schwab <schwab at suse dot de>
- To: Art Haas <ahaas at neosoft dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Sun, 10 Feb 2002 16:51:39 +0100
- Subject: Re: [PATCH] building iconv files in glibc-2-2-branch
- References: <20020210084650.A27737@debian>
Art Haas <ahaas@neosoft.com> 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 <drepper@redhat.com>
* 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.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
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."