From: | "Michael Sterrett (mr_bones_)" <mr_bones_@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-sports/torcs/files: torcs-1.3.1-libpng15.patch |
Date: | Mon, 30 May 2011 01:57:58 |
Message-Id: | 20110530015746.E18D120057@flycatcher.gentoo.org |
1 | mr_bones_ 11/05/30 01:57:46 |
2 | |
3 | Added: torcs-1.3.1-libpng15.patch |
4 | Log: |
5 | add patch for building with libpng from wrstwssr@×××××.com via bug #369231 |
6 | |
7 | (Portage version: 2.1.9.42/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.1 games-sports/torcs/files/torcs-1.3.1-libpng15.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-sports/torcs/files/torcs-1.3.1-libpng15.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-sports/torcs/files/torcs-1.3.1-libpng15.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: torcs-1.3.1-libpng15.patch |
16 | =================================================================== |
17 | --- a/src/libs/tgfclient/img.cpp |
18 | +++ b/src/libs/tgfclient/img.cpp |
19 | @@ -98,7 +98,7 @@ |
20 | return (unsigned char *)NULL; |
21 | } |
22 | |
23 | - if (setjmp(png_ptr->jmpbuf)) |
24 | + if (setjmp(png_jmpbuf(png_ptr))) |
25 | { |
26 | /* Free all of the memory associated with the png_ptr and info_ptr */ |
27 | png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL); |
28 | @@ -229,7 +229,7 @@ |
29 | return -1; |
30 | } |
31 | |
32 | - if (setjmp(png_ptr->jmpbuf)) { |
33 | + if (setjmp(png_jmpbuf(png_ptr))) { |
34 | png_destroy_write_struct(&png_ptr, &info_ptr); |
35 | fclose(fp); |
36 | return -1; |