diff options
Diffstat (limited to 'x11-toolkits/xmhtml/files/patch-lib_common_readPNG.c')
-rw-r--r-- | x11-toolkits/xmhtml/files/patch-lib_common_readPNG.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/x11-toolkits/xmhtml/files/patch-lib_common_readPNG.c b/x11-toolkits/xmhtml/files/patch-lib_common_readPNG.c new file mode 100644 index 000000000000..5bbffea2ef9e --- /dev/null +++ b/x11-toolkits/xmhtml/files/patch-lib_common_readPNG.c @@ -0,0 +1,28 @@ +--- lib/common/readPNG.c.orig 1998-11-16 23:56:19.000000000 +0100 ++++ lib/common/readPNG.c 2012-05-26 14:16:45.000000000 +0200 +@@ -82,6 +82,7 @@ + + #ifdef HAVE_LIBPNG + #include <png.h> ++#include <pngpriv.h> + #include <setjmp.h> + #include <math.h> /* required for full alpha channel processing */ + #endif +@@ -132,7 +133,7 @@ + + _XmHTMLWarning(__WFUNC__(NULL, "png_error"), XMHTML_MSG_121, "png", + ib->file, msg); +- longjmp(png_ptr->jmpbuf, 1); ++ longjmp(png_jmpbuf(png_ptr), 1); + } + + /***** +@@ -232,7 +233,7 @@ + return((XmHTMLRawImageData*)NULL); + } + /* now set error handler */ +- if(setjmp(png_ptr->jmpbuf)) ++ if(setjmp(png_jmpbuf(png_ptr))) + { + /* + * PNG signalled an error. Destroy image data, free any allocated |