wok rev 4230

Fix: patch xfe to build with gcc-4.x
author Christophe Lincoln <pankso@slitaz.org>
date Thu Sep 24 15:03:32 2009 +0200 (2009-09-24)
parents ab3be1ac9c50
children 0dfe9e7759d5
files xfe/receipt xfe/stuff/gcc-4.patch
line diff
     1.1 --- a/xfe/receipt	Thu Sep 24 12:41:52 2009 +0000
     1.2 +++ b/xfe/receipt	Thu Sep 24 15:03:32 2009 +0200
     1.3 @@ -16,6 +16,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 +	patch -p 0 < ../stuff/gcc-4.patch || exit 1
     1.8  	./configure \
     1.9  		--prefix=/usr \
    1.10  		--mandir=/usr/share/man \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xfe/stuff/gcc-4.patch	Thu Sep 24 15:03:32 2009 +0200
     2.3 @@ -0,0 +1,11 @@
     2.4 +--- src/ViewWindow.cpp	Thu Sep 24 14:54:17 2009
     2.5 ++++ src/ViewWindow.cpp	Thu Sep 24 14:55:42 2009
     2.6 +@@ -655,7 +655,7 @@
     2.7 + {
     2.8 +     FXString buf=viewer->getText();
     2.9 +     const char* text=buf.text();
    2.10 +-    char *p = strstr(&text[pos],str.text());
    2.11 ++    const char *p = strstr(&text[pos],str.text());
    2.12 +     if(!p)
    2.13 +         return -1;
    2.14 +     return (p-text);