1.1 --- a/patches/glibc/2.2.5/glibc-2.2.5-allow-gcc-4.0-iconv.patch Tue Aug 14 19:32:22 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,20 +0,0 @@
1.4 -Fixes
1.5 -iconvconfig.c: In function 'write_output':
1.6 -iconvconfig.c:973: error: invalid storage class for function 'name_insert'
1.7 -
1.8 ---- glibc-2.2.5/iconv/iconvconfig.c.old 2002-01-20 19:20:53.000000000 -0800
1.9 -+++ glibc-2.2.5/iconv/iconvconfig.c 2005-03-11 14:30:27.000000000 -0800
1.10 -@@ -969,7 +969,12 @@
1.11 - char tmpfname[sizeof (GCONV_MODULES_CACHE) + strlen (".XXXXXX")];
1.12 -
1.13 - /* Function to insert the names. */
1.14 -- static void name_insert (const void *nodep, VISIT value, int level)
1.15 -+#if __GNUC__ >= 4
1.16 -+ auto
1.17 -+#else
1.18 -+ static
1.19 -+#endif
1.20 -+ void name_insert (const void *nodep, VISIT value, int level)
1.21 - {
1.22 - struct name *name;
1.23 - unsigned int idx;