This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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] ia64 compile fix


Jes Sorensen <jes@trained-monkey.org> writes:

|> Hi
|> 
|> In order to compile 2.2-cvs under Linux/ia64 I need the following
|> patch. Basically localdef.h relies on __LC_LAST being defined hence it
|> seems reasonable for it to include "config.h" where it is defined.
|> 
|> Or am I missing something?

__LC_LAST is defined in include/locale.h in the HEAD, which will work in
the 2.2 branch, too.

Andreas.

2001-12-09  Ulrich Drepper  <drepper@redhat.com>

	* locale/localeinfo.h: Don't define __LC_LAST here.  Include <locale.h>
	instead.
	* 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;
 
Index: locale/localeinfo.h
===================================================================
RCS file: /cvs/glibc/libc/locale/localeinfo.h,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -a -u -r1.39 -r1.40
--- locale/localeinfo.h	2001/08/10 02:02:39	1.39
+++ locale/localeinfo.h	2001/12/10 01:34:19	1.40
@@ -23,12 +23,10 @@
 #include <stddef.h>
 #include <langinfo.h>
 #include <limits.h>
+#include <locale.h>
 #include <time.h>
 #include <stdint.h>
 #include <sys/types.h>
-
-/* This has to be changed whenever a new locale is defined.  */
-#define __LC_LAST	13
 
 #include <intl/loadinfo.h>	/* For loaded_l10nfile definition.  */
 

-- 
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."


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