1.1 --- a/patches/glibc/2.3.5/glibc-2.3.4-allow-gcc-4.0-iconvdata.patch Tue Aug 14 19:32:22 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,44 +0,0 @@
1.4 -See http://sources.redhat.com/ml/libc-hacker/2005-02/msg00000.html
1.5 -and http://www.mail-archive.com/pld-cvs-commit@pld-linux.org/msg00229.html
1.6 -
1.7 -Fixes
1.8 - In file included from jis0208.c:23:
1.9 - jis0208.h:32: error: array type has incomplete element type
1.10 -when building glibc with gcc-4.0
1.11 -The bug has been present since at least glibc-2.2.5.
1.12 -This patch applies cleanly to glibc-2.3.4
1.13 -
1.14 ---- /home/dank/downloads/glibc-2.3-20050307/iconvdata/jis0208.h 2003-06-11 14:40:42.000000000 -0700
1.15 -+++ glibc-2.3-20050307/iconvdata/jis0208.h 2005-03-13 20:55:01.784054760 -0800
1.16 -@@ -24,15 +24,6 @@
1.17 - #include <gconv.h>
1.18 - #include <stdint.h>
1.19 -
1.20 --/* Conversion table. */
1.21 --extern const uint16_t __jis0208_to_ucs[];
1.22 --
1.23 --extern const char __jisx0208_from_ucs4_lat1[256][2];
1.24 --extern const char __jisx0208_from_ucs4_greek[0xc1][2];
1.25 --extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[];
1.26 --extern const char __jisx0208_from_ucs_tab[][2];
1.27 --
1.28 --
1.29 - /* Struct for table with indeces in UCS mapping table. */
1.30 - struct jisx0208_ucs_idx
1.31 - {
1.32 -@@ -42,6 +33,15 @@
1.33 - };
1.34 -
1.35 -
1.36 -+/* Conversion table. */
1.37 -+extern const uint16_t __jis0208_to_ucs[];
1.38 -+
1.39 -+extern const char __jisx0208_from_ucs4_lat1[256][2];
1.40 -+extern const char __jisx0208_from_ucs4_greek[0xc1][2];
1.41 -+extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[];
1.42 -+extern const char __jisx0208_from_ucs_tab[][2];
1.43 -+
1.44 -+
1.45 - static inline uint32_t
1.46 - __attribute ((always_inline))
1.47 - jisx0208_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset)