Re: build fix for png-1.5

Thomas Klausner <tk-JlXkzPh5ucKzZXS1Dc/[email protected]>
Newsgroups gmane.comp.multimedia.dvdauthor.user
Message-ID <[email protected]>
On Wed, Jan 26, 2011 at 01:49:33PM +1300, Lawrence D'Oliveiro wrote:
> On Mon, 24 Jan 2011 15:21:32 +0100, Thomas Klausner wrote:
> 
> > The attached patch against version 0.6.18 fixes the problem.
> 
> I have adapted your patch to the current Git tree. Thanks.

Thank you!

I have another patch. The times() function on NetBSD doesn't accept a
NULL argument, which makes dvdunauthor coredump. The attached patch
for 0.6.18 by Matthias Drochner <[email protected]> fixes it; from
browsing the git tree, it should still apply.
 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-aa (text/plain, 1.1 KB)
$NetBSD: patch-aa,v 1.4 2010/05/08 16:11:06 drochner Exp $

--- src/dvdunauthor.c.orig	2010-03-05 04:20:47.000000000 +0000
+++ src/dvdunauthor.c
@@ -1033,6 +1033,7 @@ static void getVobs(dvd_reader_t *dvd, c
     const cell_adr_t *cells;
     int numcells,i,j,totalsect,numsect;
     clock_t start,now,clkpsec;
+    struct tms unused_tms;
 
     cptr = titlef ? ifo->vts_c_adt : ifo->menu_c_adt;
     if (cptr)
@@ -1054,7 +1055,7 @@ static void getVobs(dvd_reader_t *dvd, c
     for (i = 0; i < numcells; i++)
         totalsect += cells[i].last_sector - cells[i].start_sector + 1;
     clkpsec = sysconf(_SC_CLK_TCK);
-    start = times(NULL);
+    start = times(&unused_tms);
     
     for (i = 0; i < numcells; i++)
       {
@@ -1106,7 +1107,7 @@ static void getVobs(dvd_reader_t *dvd, c
             int rl = cells[i].last_sector + 1 - b;
             if (rl > BIGBLOCKSECT)
                 rl = BIGBLOCKSECT;
-            now = times(NULL);
+            now = times(&unused_tms);
             if (now-start > 3 * clkpsec && numsect > 0)
               {
                 const int rmn = (totalsect - numsect) * (now - start) / (numsect * clkpsec);
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.