Re: mednafen: FTBFS (" invalid conversion from 'void*' to 'gzFile'")
notfound 0.9.19-2
tags 661657 + patch
thanks
Hi,
I noticed the version of mednafen in experimental (0.9.19-2) already
includes a patch for this issue:
*
http://patch-tracker.debian.org/patch/series/view/mednafen/0.9.19-2/gzip-1.2.6-fix.patch
That doesn't apply against 0.8.D.3-2 but I've an attached an equivalent
patch and tested that it allows the package to build on kfreebsd-i386.
Could this please be applied to the version in unstable as this may be
the last remaining issue to complete a freebsd-libs transition.
Thank you,
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
Description: fixes needed to build with zlib 1.2.6 or newer
Author: Steven Chamberlain <steven@pyro.eu.org>
Bug-Debian: http://bugs.debian.org/661657
Index: mednafen-0.8.D.3/src/file.cpp
===================================================================
--- mednafen-0.8.D.3.orig/src/file.cpp 2009-05-15 03:12:55.000000000 +0100
+++ mednafen-0.8.D.3/src/file.cpp 2012-02-29 19:48:21.000000000 +0000
@@ -229,7 +229,7 @@
goto doret;
}
- while((howmany = gzread(tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0)
+ while((howmany = gzread((gzFile)tz, tmp->data + cur_size, cur_alloced - cur_size)) > 0)
{
cur_size += howmany;
cur_alloced <<= 1;
@@ -282,7 +282,7 @@
}
else if(type == MDFN_FILETYPE_GZIP)
{
- gzclose(tz);
+ gzclose((gzFile)tz);
}
else if(type == MDFN_FILETYPE_ZIP)
{
@@ -444,7 +444,7 @@
if(!(fceufp = MakeMemWrap(t, 1)))
{
- gzclose(t);
+ gzclose((gzFile)t);
return(0);
}
Reply to: