blob: d99ba3e45ab856d057546db2d2ec5fe8b5a9700d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ac,v 1.2 2011/01/29 23:01:50 wiz Exp $
Fix build with png-1.5.
http://plasma-gate.weizmann.ac.il/Grace/phpbb/viewtopic.php?f=3&t=2080&p=4606#p4606
--- src/rstdrv.c.orig 2004-07-03 20:47:46.000000000 +0000
+++ src/rstdrv.c
@@ -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 ihand
return;
}
- if (setjmp(png_ptr->jmpbuf)) {
+ if (setjmp(png_jmpbuf(png_ptr))) {
png_destroy_write_struct(&png_ptr, &info_ptr);
return;
}
|