$OpenBSD: patch-src_af_util_xp_ut_png_cpp,v 1.1 2011/07/08 20:38:00 naddy Exp $

Fix build with png-1.5.

--- src/af/util/xp/ut_png.cpp.orig	Wed Jul  6 18:19:51 2011
+++ src/af/util/xp/ut_png.cpp	Wed Jul  6 18:20:08 2011
@@ -71,7 +71,7 @@ bool UT_PNG_getDimensions(const UT_ByteBuf* pBB, UT_si
 	 * the normal method of doing things with libpng).  REQUIRED unless you
 	 * set up your own error handlers in the png_create_read_struct() earlier.
 	 */
-	if (setjmp(png_ptr->jmpbuf))
+	if (setjmp(png_jmpbuf(png_ptr)))
 	{
 		/* Free all of the memory associated with the png_ptr and info_ptr */
 		png_destroy_read_struct(&png_ptr, &info_ptr, static_cast<png_infopp>(NULL));
