summaryrefslogtreecommitdiff
path: root/math/grace/patches
diff options
context:
space:
mode:
authorwiz <wiz>2011-01-26 09:29:26 +0000
committerwiz <wiz>2011-01-26 09:29:26 +0000
commita4dc533cbfee9d6ebd03ae38d928f64fa1707036 (patch)
treec88840c28be9a6be76e70ac8792645d8e4d11b60 /math/grace/patches
parent107d9939f4e7f58814429cf1700da6c8426f9978 (diff)
downloadpkgsrc-a4dc533cbfee9d6ebd03ae38d928f64fa1707036.tar.gz
Fix build with png-1.5. Problem reported by chuck.
Diffstat (limited to 'math/grace/patches')
-rw-r--r--math/grace/patches/patch-ac23
1 files changed, 23 insertions, 0 deletions
diff --git a/math/grace/patches/patch-ac b/math/grace/patches/patch-ac
new file mode 100644
index 00000000000..1d37343fb9c
--- /dev/null
+++ b/math/grace/patches/patch-ac
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1 2011/01/26 09:29:26 wiz Exp $
+
+Fix build with png-1.5.
+
+--- 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;
+ }