wok-next rev 3823
Fix: encfs cook with gcc 4.4 serie
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Aug 06 15:53:40 2009 +0200 (2009-08-06) |
parents | 6c3da1c43b30 |
children | 6a9081920184 |
files | encfs/receipt encfs/stuff/gcc44.patch |
line diff
1.1 --- a/encfs/receipt Thu Aug 06 15:40:03 2009 +0200 1.2 +++ b/encfs/receipt Thu Aug 06 15:53:40 2009 +0200 1.3 @@ -17,6 +17,7 @@ 1.4 { 1.5 mv $PACKAGE-${VERSION%-*} $src 2> /dev/null 1.6 cd $src 1.7 + patch -p0 < ../stuff/gcc44.patch || exit 1 1.8 ./configure --prefix=/usr $CONFIGURE_ARGS && 1.9 make && 1.10 make DESTDIR=$src/_pkg install
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/encfs/stuff/gcc44.patch Thu Aug 06 15:53:40 2009 +0200 2.3 @@ -0,0 +1,11 @@ 2.4 +--- encfs/NameIO.cpp Wed Aug 6 08:35:05 2008 2.5 ++++ encfs/NameIO.cpp Thu Aug 6 15:43:41 2009 2.6 +@@ -190,7 +190,7 @@ 2.7 + } else 2.8 + { 2.9 + bool isDotFile = (*path == '.'); 2.10 +- char *next = strchr( path, '/' ); 2.11 ++ const char *next = strchr( path, '/' ); 2.12 + int len = next ? next - path : strlen( path ); 2.13 + 2.14 + // at this point we know that len > 0