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

16 lines
433 B
Plaintext

$OpenBSD: patch-src_Util_cpp,v 1.1 2011/07/08 20:38:01 naddy Exp $
Fix build with png-1.5.
--- src/Util.cpp.orig Tue Jul 5 21:18:42 2011
+++ src/Util.cpp Tue Jul 5 21:19:02 2011
@@ -79,7 +79,7 @@ bool utilWritePNGFile(const char *fileName, int w, int
return false;
}
- if(setjmp(png_ptr->jmpbuf)) {
+ if(setjmp(png_jmpbuf(png_ptr))) {
png_destroy_write_struct(&png_ptr,NULL);
fclose(fp);
return false;