diff options
Diffstat (limited to 'graphics/imlib/files')
-rw-r--r-- | graphics/imlib/files/patch-io-png.c | 46 | ||||
-rw-r--r-- | graphics/imlib/files/patch-load.c | 17 | ||||
-rw-r--r-- | graphics/imlib/files/patch-save.c | 11 | ||||
-rw-r--r-- | graphics/imlib/files/patch-utils.c | 19 |
4 files changed, 93 insertions, 0 deletions
diff --git a/graphics/imlib/files/patch-io-png.c b/graphics/imlib/files/patch-io-png.c new file mode 100644 index 000000000000..c4f315a15f4d --- /dev/null +++ b/graphics/imlib/files/patch-io-png.c @@ -0,0 +1,46 @@ +--- gdk_imlib/io-png.c.orig 2002-03-04 18:06:29.000000000 +0100 ++++ gdk_imlib/io-png.c 2012-04-24 23:11:43.000000000 +0200 +@@ -5,6 +5,7 @@ + + #ifdef HAVE_LIBPNG + #include <png.h> ++#include <pngpriv.h> + + unsigned char * + loader_png (FILE * f, int *w, int *h, int *t) +@@ -40,7 +41,7 @@ + return NULL; + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return NULL; +@@ -275,7 +276,7 @@ + return NULL; + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return NULL; +@@ -440,7 +441,7 @@ + return NULL; + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return NULL; +@@ -635,7 +636,7 @@ + png_destroy_write_struct(&png_ptr, (png_infopp) NULL); + return 0; + } +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + fclose(f); + png_destroy_write_struct(&png_ptr, (png_infopp) NULL); diff --git a/graphics/imlib/files/patch-load.c b/graphics/imlib/files/patch-load.c index a51987eb63ef..471406402710 100644 --- a/graphics/imlib/files/patch-load.c +++ b/graphics/imlib/files/patch-load.c @@ -1,5 +1,22 @@ --- Imlib/load.c.orig 2004-09-21 02:23:20.000000000 +0200 +++ Imlib/load.c 2010-03-28 16:23:13.000000000 +0200 +@@ -170,6 +176,7 @@ + #endif /* HAVE_LIBJPEG */ + + #ifdef HAVE_LIBPNG ++#include <pngpriv.h> + unsigned char * + _LoadPNG(ImlibData * id, FILE * f, int *w, int *h, int *t) + { +@@ -192,7 +198,7 @@ + png_destroy_read_struct(&png_ptr, NULL, NULL); + return NULL; + } +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return NULL; @@ -1619,7 +1619,7 @@ return 0; fread(buf, 1, 8, f); diff --git a/graphics/imlib/files/patch-save.c b/graphics/imlib/files/patch-save.c new file mode 100644 index 000000000000..88a23c0426c8 --- /dev/null +++ b/graphics/imlib/files/patch-save.c @@ -0,0 +1,11 @@ +--- Imlib/save.c.orig 2004-09-21 02:22:59.000000000 +0200 ++++ Imlib/save.c 2012-04-27 07:19:57.000000000 +0200 +@@ -342,7 +342,7 @@ + png_destroy_write_struct(&png_ptr, (png_infopp) NULL); + return 0; + } +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + fclose(f); + png_destroy_write_struct(&png_ptr, (png_infopp) NULL); diff --git a/graphics/imlib/files/patch-utils.c b/graphics/imlib/files/patch-utils.c new file mode 100644 index 000000000000..0d59d7879b1f --- /dev/null +++ b/graphics/imlib/files/patch-utils.c @@ -0,0 +1,19 @@ +--- Imlib/utils.c.orig 2012-04-27 07:12:19.000000000 +0200 ++++ Imlib/utils.c 2012-04-27 07:15:39.000000000 +0200 +@@ -1899,6 +1899,7 @@ + }; + + #ifdef HAVE_LIBPNG ++#include "pngpriv.h" + static void + _png_io_read(png_structp png_ptr, + png_bytep data, png_uint_32 size) +@@ -1982,7 +1983,7 @@ + return NULL; + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + png_destroy_read_struct(&png_ptr, &info_ptr, NULL); + return NULL; |