build fix for png-1.5

Thomas Klausner <tk-JlXkzPh5ucKzZXS1Dc/[email protected]>
Newsgroups gmane.comp.multimedia.dvdauthor.user
Message-ID <[email protected]>
Hi!

png-1.5 hid structure members from public view and stopped including
zlib.h automatically. dvdauthor-0.6.18 doesn't compile against that
version; I also checked git master and it still has the same issues.

The attached patch against version 0.6.18 fixes the problem.

Please include (something like) this in the next release.

Thanks,
 Thomas

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d

_______________________________________________
Dvdauthor-users mailing list
Dvdauthor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/dvdauthor-users
patch-ab (text/plain, 529 B)
$NetBSD: patch-ab,v 1.3 2011/01/14 10:57:50 wiz Exp $

Fix build with png-1.5.

--- src/spuunmux.c.orig	2010-03-05 06:37:06.000000000 +0000
+++ src/spuunmux.c
@@ -38,6 +38,7 @@
 #include <netinet/in.h>
 
 #include <png.h>
+#include <zlib.h>
 
 #include "rgb.h"
 #include "common.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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.