| 1 |
Descriptionscip-debian debian matanza 0.13+ds2-2 matanza/patches/`05-fix-build-with-libpng1.5.patch`#Description.: Fix build with libpng >= 1.5 |
| 2 |
Authorscip-debian debian matanza 0.13+ds2-2 matanza/patches/`05-fix-build-with-libpng1.5.patch`#Author.: Nobuhiro Iwamatsu <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 3 |
Bug-Debianscip-debian debian matanza 0.13+ds2-2 matanza/patches/`05-fix-build-with-libpng1.5.patch`#Bug-Debian.: http://bugs.debian.org/636984scip-debian-bts debian-bts . . 636984: |
| 4 |
Forwardedscip-debian debian matanza 0.13+ds2-2 matanza/patches/`05-fix-build-with-libpng1.5.patch`#Forwarded.: no |
| 5 |
Reviewed-Byscip-debian debian matanza 0.13+ds2-2 matanza/patches/`05-fix-build-with-libpng1.5.patch`#Reviewed-By.: Boris Pek <[email protected]> |
| 6 |
Last-Updatescip-debian debian matanza 0.13+ds2-2 matanza/patches/`05-fix-build-with-libpng1.5.patch`#Last-Update.: 2012-12-17 |
| 7 |
|
| 8 |
--- a/matanza.wscip-debian debian matanza 0.13+ds2-2 matanza/upstream/`matanza.w`: |
| 9 |
+++ b/matanza.wscip-debian debian matanza 0.13+ds2-2 matanza/upstream/`matanza.w`: |
| 10 |
@@ -9822,8 +9822,11 @@ |
| 11 |
png_destroy_read_struct(&png_ptr, NULL, NULL); |
| 12 |
exit(EXIT_FAILURE); |
| 13 |
} |
| 14 |
|
| 15 |
+#if PNG_LIBPNG_VER_MAJOR >= 1 && PNG_LIBPNG_VER_MINOR >= 4 |
| 16 |
+ if (setjmp(png_jmpbuf((png_ptr)))) |
| 17 |
+#else |
| 18 |
if (setjmp(png_ptr->jmpbuf)) |
| 19 |
+#endif |
| 20 |
{ |
| 21 |
fprintf(stderr, "%s: %s\n", program_name, strerror(errno)); |
| 22 |
png_destroy_read_struct(&png_ptr, &info_ptr, NULL); |