Mercurial > hg > aboriginal
comparison sources/patches/uClibc-fixlocalestruct.patch @ 1292:92d5df091df4
Any attempt to actually _use_ the locale stuff fails dereferencing incomplete types because the guts of the headers (where the actual struct contents are defined) get zapped during install by unifdef on _LIBC guards. Rip the unnecessary #ifdefs out. See thread at http://lists.uclibc.org/pipermail/uclibc/2010-July/044185.html
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 21 Nov 2010 14:20:22 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1291:4ed17790b5dc | 1292:92d5df091df4 |
---|---|
1 diff -ruN uClibc/libc/sysdeps/linux/common/bits/uClibc_locale.h uClibc.bak/libc/sysdeps/linux/common/bits/uClibc_locale.h | |
2 --- uClibc/libc/sysdeps/linux/common/bits/uClibc_locale.h 2010-04-02 10:34:27.000000000 -0500 | |
3 +++ uClibc.bak/libc/sysdeps/linux/common/bits/uClibc_locale.h 2010-11-10 15:11:31.000000000 -0600 | |
4 @@ -41,11 +41,9 @@ | |
5 | |
6 # define __LOCALE_C_ONLY | |
7 | |
8 -# ifdef _LIBC | |
9 # define __XL_NPP(N) N | |
10 # define __LOCALE_PARAM | |
11 # define __LOCALE_ARG | |
12 -# endif | |
13 | |
14 #endif | |
15 | |
16 @@ -90,8 +88,6 @@ | |
17 struct __uclibc_locale_struct; | |
18 typedef struct __uclibc_locale_struct *__locale_t; | |
19 | |
20 -#ifdef _LIBC | |
21 - | |
22 /* extern void _locale_set(const unsigned char *p); */ | |
23 /* extern void _locale_init(void); */ | |
24 | |
25 @@ -367,8 +363,6 @@ | |
26 #endif | |
27 /**********************************************************************/ | |
28 | |
29 -#endif /* _LIBC */ | |
30 - | |
31 #endif /* !defined(__LOCALE_C_ONLY) */ | |
32 | |
33 #endif /* _UCLIBC_LOCALE_H */ |