diff options
author | ryoon <ryoon> | 2011-01-19 12:45:22 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2011-01-19 12:45:22 +0000 |
commit | 371003f1f4debe9440014650234720182bf2d119 (patch) | |
tree | 50693ff28fe65293a9172890dec3cea43d41abda /graphics/gdk-pixbuf/patches | |
parent | b7c2d30bbf4cef49da2a4278a9dee897392ec01a (diff) | |
download | pkgsrc-371003f1f4debe9440014650234720182bf2d119.tar.gz |
Fix build with png-1.5.
Diffstat (limited to 'graphics/gdk-pixbuf/patches')
-rw-r--r-- | graphics/gdk-pixbuf/patches/patch-an | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/graphics/gdk-pixbuf/patches/patch-an b/graphics/gdk-pixbuf/patches/patch-an new file mode 100644 index 00000000000..2242e9c8595 --- /dev/null +++ b/graphics/gdk-pixbuf/patches/patch-an @@ -0,0 +1,31 @@ +$NetBSD: patch-an,v 1.1 2011/01/19 12:45:23 ryoon Exp $ + +--- gdk-pixbuf/io-png.c.orig 2001-01-24 20:59:23.000000000 +0000 ++++ gdk-pixbuf/io-png.c +@@ -175,7 +175,7 @@ gdk_pixbuf__png_image_load (FILE *f) + return NULL; + } + +- if (setjmp (png_ptr->jmpbuf)) { ++ if (setjmp (png_jmpbuf(png_ptr))) { + png_destroy_read_struct (&png_ptr, &info_ptr, &end_info); + return NULL; + } +@@ -311,7 +311,7 @@ gdk_pixbuf__png_image_begin_load (Module + return NULL; + } + +- if (setjmp (lc->png_read_ptr->jmpbuf)) { ++ if (setjmp (png_jmpbuf(lc->png_read_ptr))) { + if (lc->png_info_ptr) + png_destroy_read_struct(&lc->png_read_ptr, NULL, NULL); + g_free(lc); +@@ -366,7 +366,7 @@ gdk_pixbuf__png_image_load_increment(gpo + lc->max_row_seen_in_chunk = -1; + + /* Invokes our callbacks as needed */ +- if (setjmp (lc->png_read_ptr->jmpbuf)) { ++ if (setjmp (png_jmpbuf(lc->png_read_ptr))) { + return FALSE; + } else { + png_process_data(lc->png_read_ptr, lc->png_info_ptr, buf, size); |