eed7c62887
All fixes by yours truly.
24 lines
548 B
Plaintext
24 lines
548 B
Plaintext
$OpenBSD: patch-src_rstdrv_c,v 1.1 2011/07/08 20:38:01 naddy Exp $
|
|
|
|
Fix build with png-1.5.
|
|
|
|
--- src/rstdrv.c.orig Wed Jul 6 11:19:00 2011
|
|
+++ src/rstdrv.c Wed Jul 6 11:19:34 2011
|
|
@@ -54,6 +54,7 @@
|
|
|
|
#ifdef HAVE_LIBPNG
|
|
# include <png.h>
|
|
+# include <zlib.h>
|
|
#endif
|
|
|
|
#ifndef NONE_GUI
|
|
@@ -885,7 +886,7 @@ static void rstImagePng(gdImagePtr ihandle, FILE *prst
|
|
return;
|
|
}
|
|
|
|
- if (setjmp(png_ptr->jmpbuf)) {
|
|
+ if (setjmp(png_jmpbuf(png_ptr))) {
|
|
png_destroy_write_struct(&png_ptr, &info_ptr);
|
|
return;
|
|
}
|