File khunphan-libpng15.patch of Package khunphan
Index: khunphan-0.55/khunphan/btexture.cpp
===================================================================
--- khunphan-0.55.orig/khunphan/btexture.cpp
+++ khunphan-0.55/khunphan/btexture.cpp
@@ -24,6 +24,7 @@
#include <windows.h>
#endif
#include <png.h>
+#include <zlib.h>
#include "misc1.h"
#include "btexture.h"
@@ -447,7 +448,7 @@ bool BTexture::WriteTextureToPngFile (FI
return false;
}
- if (setjmp(png_ptr->jmpbuf)) {
+ if (png_jmpbuf(png_ptr)) {
png_destroy_write_struct(&png_ptr, &info_ptr);
return false;
}