Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2010 13:46:19 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        ports@FreeBSD.org
Subject:   games/prboom: needs patch after png update
Message-ID:  <4BF3C17B.5050602@icyb.net.ua>

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

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?4BF3C17B.5050602>