From 2b74a89bc8342f0b9b737c37d87737caf7b0ea1e Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Fri, 1 Jun 2012 05:26:28 +0000 Subject: - update png to 1.5.10 --- graphics/lensfun/files/patch-image.cpp | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 graphics/lensfun/files/patch-image.cpp (limited to 'graphics/lensfun/files/patch-image.cpp') diff --git a/graphics/lensfun/files/patch-image.cpp b/graphics/lensfun/files/patch-image.cpp new file mode 100644 index 000000000000..a5b111788379 --- /dev/null +++ b/graphics/lensfun/files/patch-image.cpp @@ -0,0 +1,37 @@ +--- libs/auxfun/image.cpp.orig 2008-05-02 08:56:04.000000000 +0200 ++++ libs/auxfun/image.cpp 2012-05-04 12:31:16.000000000 +0200 +@@ -6,6 +6,7 @@ + #include "image.h" + #include + #include ++#include + #include + #include + #include +@@ -94,7 +95,7 @@ + + png_init_io (png, file); + +- if (setjmp (png->jmpbuf)) ++ if (setjmp (png_jmpbuf(png))) + // If we get here, we had a problem reading the file + goto nomem; + +@@ -157,7 +158,7 @@ + row_pointers = new png_bytep [Height]; + + if (!row_pointers +- || setjmp (png->jmpbuf)) // Set a new exception handler ++ || setjmp (png_jmpbuf(png))) // Set a new exception handler + { + delete [] row_pointers; + nomem: +@@ -214,7 +215,7 @@ + } + + /* Catch processing errors */ +- if (setjmp(png->jmpbuf)) ++ if (setjmp(png_jmpbuf(png))) + /* If we get here, we had a problem writing the file */ + goto error2; + -- cgit v1.2.3