summaryrefslogtreecommitdiff
path: root/math/grace/patches/patch-ac
blob: 1d37343fb9c42c341a7e36a13ee384eb5d5fa8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
     }