view 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
line wrap: on
line source

diff -ruN uClibc/libc/sysdeps/linux/common/bits/uClibc_locale.h uClibc.bak/libc/sysdeps/linux/common/bits/uClibc_locale.h
--- uClibc/libc/sysdeps/linux/common/bits/uClibc_locale.h	2010-04-02 10:34:27.000000000 -0500
+++ uClibc.bak/libc/sysdeps/linux/common/bits/uClibc_locale.h	2010-11-10 15:11:31.000000000 -0600
@@ -41,11 +41,9 @@
 
 # define __LOCALE_C_ONLY
 
-# ifdef _LIBC
 #  define __XL_NPP(N) N
 #  define __LOCALE_PARAM
 #  define __LOCALE_ARG
-# endif
 
 #endif
 
@@ -90,8 +88,6 @@
 struct __uclibc_locale_struct;
 typedef struct __uclibc_locale_struct *__locale_t;
 
-#ifdef _LIBC
-
 /* extern void _locale_set(const unsigned char *p); */
 /* extern void _locale_init(void); */
 
@@ -367,8 +363,6 @@
 #endif
 /**********************************************************************/
 
-#endif /* _LIBC */
-
 #endif /* !defined(__LOCALE_C_ONLY) */
 
 #endif /* _UCLIBC_LOCALE_H */