summaryrefslogtreecommitdiff
blob: 89b43add3cf5eefe7fe3342f11616f7666d8db7e (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
25
http://bugs.gentoo.org/355039

$NetBSD: patch-ab,v 1.3 2011/01/14 10:57:50 wiz Exp $

Fix build with png-1.5.

--- src/spuunmux.c
+++ src/spuunmux.c
@@ -38,6 +38,7 @@
 #include <netinet/in.h>
 
 #include <png.h>
+#include <zlib.h>
 
 #include "rgb.h"
 
@@ -483,7 +484,7 @@ static int write_png(char *file_name,str
 	return -1;
     }
 
-    if (setjmp(png_ptr->jmpbuf)) {
+    if (setjmp(png_jmpbuf(png_ptr))) {
 	png_destroy_write_struct(&png_ptr, &info_ptr);
 	fclose(fp);
 	return -1;