openbsd-ports/multimedia/dvdauthor/patches/patch-src_spuunmux_c
2011-11-08 08:00:21 +00:00

24 lines
602 B
Plaintext

$OpenBSD: patch-src_spuunmux_c,v 1.2 2011/11/08 08:00:21 dcoppa Exp $
Fix build with png-1.5.
--- src/spuunmux.c.orig Mon May 10 03:27:55 2010
+++ src/spuunmux.c Mon Nov 7 14:56:32 2011
@@ -39,6 +39,7 @@
#include <netinet/in.h>
#include <png.h>
+#include <zlib.h>
#include "rgb.h"
#include "common.h"
@@ -610,7 +611,7 @@ static int write_png
png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
return -1;
} /*if*/
- if (setjmp(png_ptr->jmpbuf))
+ if (png_jmpbuf(png_ptr))
{
png_destroy_write_struct(&png_ptr, &info_ptr);
fclose(fp);