--- src/tkobjc/Pixmap.m.orig 2003-06-22 10:57:34.000000000 -0500 +++ src/tkobjc/Pixmap.m 2012-09-24 09:18:26.000000000 -0500 @@ -103,7 +103,7 @@ png_destroy_read_struct (&read_ptr, NULL, NULL); raiseEvent (PixmapError, "Could not create PNG info struct"); } - if (setjmp (read_ptr->jmpbuf)) + if (setjmp (png_jmpbuf (read_ptr))) { png_destroy_read_struct (&read_ptr, &read_info_ptr, (png_infopp)NULL); fclose (fp); --- src/tkobjc/internal.m.orig 2007-06-17 01:15:30.000000000 -0500 +++ src/tkobjc/internal.m 2012-09-24 09:18:15.000000000 -0500 @@ -1666,7 +1666,7 @@ raiseEvent (PixmapError, "Could not create PNG info struct\n"); } - if (setjmp (png_ptr->jmpbuf)) + if (setjmp (png_jmpbuf (png_ptr))) { png_destroy_write_struct (&png_ptr, &info_ptr); fclose (fp);