patches/glibc/2.3.3/glibc-2.3.3-allow-gcc-4.0-iconv.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.3.3/glibc-2.3.3-allow-gcc-4.0-iconv.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,24 @@
     1.4 +Fixes
     1.5 +iconvconfig.c: In function 'write_output':
     1.6 +iconvconfig.c:1014: error: invalid storage class for function 'name_insert'
     1.7 +make[2]: Leaving directory `/home/dank/queue/jobdir.fast2/crosstool-dev/build/x86_64-unknown-linux-gnu/gcc-4.0-20050305-glibc-2.3.3/glibc-2.3.3/iconv'
     1.8 +
     1.9 +Like http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/iconv/iconvconfig.c.diff?r1=1.19&r2=1.20&cvsroot=glibc
    1.10 +but works with older compilers
    1.11 +
    1.12 +--- glibc-2.3.3/iconv/iconvconfig.c.old	Thu Mar 17 01:23:04 2005
    1.13 ++++ glibc-2.3.3/iconv/iconvconfig.c	Thu Mar 17 01:24:56 2005
    1.14 +@@ -1010,7 +1010,12 @@
    1.15 +   char finalname[prefix_len + sizeof (GCONV_MODULES_CACHE)];
    1.16 + 
    1.17 +   /* Function to insert the names.  */
    1.18 +-  static void name_insert (const void *nodep, VISIT value, int level)
    1.19 ++#if __GNUC__ >= 4
    1.20 ++  auto void 
    1.21 ++#else
    1.22 ++  static void 
    1.23 ++#endif
    1.24 ++  name_insert (const void *nodep, VISIT value, int level)
    1.25 +     {
    1.26 +       struct name *name;
    1.27 +       unsigned int idx;