yann@1: See http://sources.redhat.com/ml/libc-hacker/2005-02/msg00000.html yann@1: and http://www.mail-archive.com/pld-cvs-commit@pld-linux.org/msg00229.html yann@1: yann@1: Fixes yann@1: In file included from jis0208.c:23: yann@1: jis0208.h:32: error: array type has incomplete element type yann@1: when building glibc with gcc-4.0 yann@1: The bug has been present since at least glibc-2.2.5. yann@1: This patch applies cleanly to glibc-2.3.4 yann@1: yann@1: --- /home/dank/downloads/glibc-2.3-20050307/iconvdata/jis0208.h 2003-06-11 14:40:42.000000000 -0700 yann@1: +++ glibc-2.3-20050307/iconvdata/jis0208.h 2005-03-13 20:55:01.784054760 -0800 yann@1: @@ -24,15 +24,6 @@ yann@1: #include yann@1: #include yann@1: yann@1: -/* Conversion table. */ yann@1: -extern const uint16_t __jis0208_to_ucs[]; yann@1: - yann@1: -extern const char __jisx0208_from_ucs4_lat1[256][2]; yann@1: -extern const char __jisx0208_from_ucs4_greek[0xc1][2]; yann@1: -extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[]; yann@1: -extern const char __jisx0208_from_ucs_tab[][2]; yann@1: - yann@1: - yann@1: /* Struct for table with indeces in UCS mapping table. */ yann@1: struct jisx0208_ucs_idx yann@1: { yann@1: @@ -42,6 +33,15 @@ yann@1: }; yann@1: yann@1: yann@1: +/* Conversion table. */ yann@1: +extern const uint16_t __jis0208_to_ucs[]; yann@1: + yann@1: +extern const char __jisx0208_from_ucs4_lat1[256][2]; yann@1: +extern const char __jisx0208_from_ucs4_greek[0xc1][2]; yann@1: +extern const struct jisx0208_ucs_idx __jisx0208_from_ucs_idx[]; yann@1: +extern const char __jisx0208_from_ucs_tab[][2]; yann@1: + yann@1: + yann@1: static inline uint32_t yann@1: __attribute ((always_inline)) yann@1: jisx0208_to_ucs4 (const unsigned char **s, size_t avail, unsigned char offset)