openbsd-ports/games/pingus/patches/patch-src_screenshot_cpp
naddy eed7c62887 Fix build with png-1.5.
All fixes by yours truly.
2011-07-08 20:38:00 +00:00

16 lines
453 B
Plaintext

$OpenBSD: patch-src_screenshot_cpp,v 1.1 2011/07/08 20:38:01 naddy Exp $
Fix build with png-1.5.
--- src/screenshot.cpp.orig Tue Jul 5 18:02:06 2011
+++ src/screenshot.cpp Tue Jul 5 18:02:25 2011
@@ -159,7 +159,7 @@ Screenshot::save_png(const std::string& filename, uint
return;
}
- if (setjmp(png_ptr->jmpbuf))
+ if (setjmp(png_jmpbuf(png_ptr)))
{
// If we get here, we had a problem reading the file
fclose(fp);