board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / fbv / 0007-libpng15.patch
blob7872a73cf679f952c3042467ec293b681475ef87
1 Support for libpng 1.5+ shamelessly taken from Gentoo.
3 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
5 --- a/png.c
6 +++ b/png.c
7 @@ -69,7 +69,7 @@
8 fclose(fh); return(FH_ERROR_FORMAT);
10 rp=0;
11 - if (setjmp(png_ptr->jmpbuf))
12 + if (setjmp(png_jmpbuf(png_ptr)))
14 png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
15 if(rp) free(rp);
16 @@ -161,7 +161,7 @@
17 fclose(fh); return(FH_ERROR_FORMAT);
19 rp=0;
20 - if (setjmp(png_ptr->jmpbuf))
21 + if (setjmp(png_jmpbuf(png_ptr)))
23 png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
24 if(rp) free(rp);