$OpenBSD: patch-src_spuunmux_c,v 1.1 2011/07/08 20:38:00 naddy Exp $

Fix build with png-1.5.

--- src/spuunmux.c.orig	Wed Jul  6 18:17:03 2011
+++ src/spuunmux.c	Wed Jul  6 18:17:41 2011
@@ -35,6 +35,7 @@
 #include <netinet/in.h>
 
 #include <png.h>
+#include <zlib.h>
 
 #include "rgb.h"
 
@@ -460,7 +461,7 @@ static int write_png(char *file_name,struct spu *s,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;
