wok-6.x rev 3639
abiword-plugins: fix compile for gcc44
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 03 18:01:23 2009 +0200 (2009-07-03) |
parents | c40143c90a50 |
children | 672d4595c451 |
files | abiword-plugins/receipt abiword-plugins/stuff/gcc44.u |
line diff
1.1 --- a/abiword-plugins/receipt Fri Jul 03 17:43:52 2009 +0200 1.2 +++ b/abiword-plugins/receipt Fri Jul 03 18:01:23 2009 +0200 1.3 @@ -16,6 +16,14 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + while read file; do 1.8 + [ -f done.$file ] && continue 1.9 + echo "Apply $file..." 1.10 + patch -p1 < ../stuff/$file || return 1 1.11 + touch done.$file 1.12 + done <<EOT 1.13 +gcc44.u 1.14 +EOT 1.15 ./configure \ 1.16 --prefix=/usr \ 1.17 --infodir=/usr/share/info \
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/abiword-plugins/stuff/gcc44.u Fri Jul 03 18:01:23 2009 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +--- abiword-plugins-2.6.4/tools/abicommand/xp/AbiCommand.cpp 2.5 ++++ abiword-plugins-2.6.4/tools/abicommand/xp/AbiCommand.cpp 2.6 +@@ -551,7 +551,7 @@ 2.7 + UT_UTF8String *pCom1 = 2.8 + const_cast < UT_UTF8String * >(static_cast < const UT_UTF8String * >(pToks->getNthItem (1))); 2.9 + printf(" Filename %s \n",pCom1->utf8_str()); 2.10 +- char *suffix = rindex (pCom1->utf8_str (), '.'); 2.11 ++ const char *suffix = rindex (pCom1->utf8_str (), '.'); 2.12 + 2.13 + if (suffix != NULL) 2.14 + {