From: | "Alfredo Tupone (tupone)" <tupone@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-emulation/snes9x/files: snes9x-1.43-gcc440.patch |
Date: | Fri, 05 Jun 2009 07:14:02 |
Message-Id: | E1MCTcl-0007FJ-Dj@stork.gentoo.org |
1 | tupone 09/06/05 07:13:59 |
2 | |
3 | Added: snes9x-1.43-gcc440.patch |
4 | Log: |
5 | Fix build with gcc-4.4.0 |
6 | (Portage version: 2.1.6.11/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 games-emulation/snes9x/files/snes9x-1.43-gcc440.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/snes9x/files/snes9x-1.43-gcc440.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-emulation/snes9x/files/snes9x-1.43-gcc440.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: snes9x-1.43-gcc440.patch |
15 | =================================================================== |
16 | --- unix/unix.cpp.old 2009-06-05 08:52:45.000000000 +0200 |
17 | +++ unix/unix.cpp 2009-06-05 08:54:31.000000000 +0200 |
18 | @@ -1131,11 +1131,11 @@ |
19 | { |
20 | *drive = 0; |
21 | |
22 | - char *slash = strrchr (path, '/'); |
23 | + const char *slash = strrchr (path, '/'); |
24 | if (!slash) |
25 | slash = strrchr (path, '\\'); |
26 | |
27 | - char *dot = strrchr (path, '.'); |
28 | + const char *dot = strrchr (path, '.'); |
29 | |
30 | if (dot && slash && dot < slash) |
31 | dot = NULL; |