Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Feb 2012 13:04:00 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        ports@FreeBSD.org
Subject:   Re: games/prboom: needs patch after png update
Message-ID:  <4F4228A0.2090805@FreeBSD.org>
In-Reply-To: <4BF3C17B.5050602@icyb.net.ua>
References:  <4BF3C17B.5050602@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

Seems like the following is still an issue.

on 19/05/2010 13:46 Andriy Gapon said the following:
> 
> This is an issue very similar to what is described here:
> http://www.freebsd.org/cgi/query-pr.cgi?pr=145163
> The following patch should fix compilation with new png.
> 
> --- src/SDL/i_sshot.c.orig	2010-05-19 13:40:36.506099313 +0300
> +++ src/SDL/i_sshot.c	2010-05-19 13:41:50.837973800 +0300
> @@ -231,7 +231,7 @@
>    if (fp)
>    {
>      png_struct *png_ptr = png_create_write_struct(
> -        PNG_LIBPNG_VER_STRING, png_error_ptr_NULL, error_fn, warning_fn);
> +        PNG_LIBPNG_VER_STRING, NULL, error_fn, warning_fn);
> 
>      if (png_ptr)
>      {
> @@ -279,7 +279,7 @@
>              break;
>          }
>        }
> -      png_destroy_write_struct(&png_ptr,  png_infopp_NULL);
> +      png_destroy_write_struct(&png_ptr,  NULL);
>      }
>      fclose(fp);
>    }
> 


-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F4228A0.2090805>