summaryrefslogtreecommitdiff
path: root/graphics/xfig/patches/patch-ap
blob: e49b95bea95c950a4a5b2d8ae5d1593837e2bf31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ap,v 1.1 2011/01/19 19:03:12 drochner Exp $

--- f_wrpng.c.orig	2007-03-29 00:23:14.000000000 +0000
+++ f_wrpng.c
@@ -20,6 +20,7 @@
 #include "w_msgpanel.h"
 #include "w_setup.h"
 #include <png.h>
+#include <zlib.h>
 
 /*
  * Write PNG file from rgb data
@@ -59,7 +60,7 @@ write_png(FILE *file, unsigned char *dat
     }
 
     /* set long jump recovery here */
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
 	/* if we get here there was a problem reading the file */
 	png_destroy_write_struct(&png_ptr, &info_ptr);
 	return False;