wok-current rev 4263
urxvt*: fix build with gcc-4.x
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 25 16:26:07 2009 +0200 (2009-09-25) |
parents | 92cae9ac27b8 |
children | 958776efba81 |
files | urxvt-full/receipt urxvt/receipt urxvt/stuff/gcc.u |
line diff
1.1 --- a/urxvt-full/receipt Fri Sep 25 16:01:48 2009 +0200 1.2 +++ b/urxvt-full/receipt Fri Sep 25 16:26:07 2009 +0200 1.3 @@ -17,6 +17,7 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + busybox patch -p0 -i $WOK/urxvt/stuff/gcc.u 1.8 ./configure --prefix=/usr --infodir=/usr/share/info \ 1.9 --enable-everything \ 1.10 --mandir=/usr/share/man $CONFIGURE_ARGS && \
2.1 --- a/urxvt/receipt Fri Sep 25 16:01:48 2009 +0200 2.2 +++ b/urxvt/receipt Fri Sep 25 16:26:07 2009 +0200 2.3 @@ -16,6 +16,7 @@ 2.4 compile_rules() 2.5 { 2.6 cd $src 2.7 + busybox patch -p0 -i ../stuff/gcc.u 2.8 ./configure --prefix=/usr --infodir=/usr/share/info \ 2.9 --disable-perl --with-codesets='eu' \ 2.10 --mandir=/usr/share/man $CONFIGURE_ARGS && \
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/urxvt/stuff/gcc.u Fri Sep 25 16:26:07 2009 +0200 3.3 @@ -0,0 +1,23 @@ 3.4 +--- src/command.C 3.5 ++++ src/command.C 3.6 +@@ -3336,7 +3336,7 @@ 3.7 + } 3.8 + else 3.9 + { 3.10 +- char *eq = strchr (str, '='); // constness lost, but verified to be ok 3.11 ++ char *eq = strchr ((char *)str, '='); 3.12 + 3.13 + if (eq) 3.14 + { 3.15 + 3.16 +--- src/misc.C 3.17 ++++ src/misc.C 3.18 +@@ -170,7 +170,7 @@ 3.19 + char * 3.20 + rxvt_basename (const char *str) NOTHROW 3.21 + { 3.22 +- char *base = strrchr (str, '/'); 3.23 ++ char *base = strrchr ((char *)str, '/'); 3.24 + 3.25 + return (char *) (base ? base + 1 : str); 3.26 + }