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

16 lines
422 B
Plaintext

$OpenBSD: patch-win32_pngtoico_c,v 1.1 2011/07/08 20:38:01 naddy Exp $
Fix build with png-1.5.
--- win32/pngtoico.c.orig Tue Jul 5 23:12:57 2011
+++ win32/pngtoico.c Tue Jul 5 23:13:37 2011
@@ -188,7 +188,7 @@ read_png(const char *file)
goto perrexit;
}
- if ( setjmp(png_ptr->jmpbuf) ) {
+ if ( setjmp(png_jmpbuf(png_ptr)) ) {
fprintf(stderr, "%s: PNG format error\n", file);
goto errexit;
}