pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/fceu Deal with zlib fallout.
details: https://anonhg.NetBSD.org/pkgsrc/rev/2dae5317b54a
branches: trunk
changeset: 358559:2dae5317b54a
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue Feb 14 21:29:39 2017 +0000
description:
Deal with zlib fallout.
diffstat:
emulators/fceu/distinfo | 3 ++-
emulators/fceu/patches/patch-src_file.c | 33 +++++++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 1 deletions(-)
diffs (51 lines):
diff -r 5db46b50d3c5 -r 2dae5317b54a emulators/fceu/distinfo
--- a/emulators/fceu/distinfo Tue Feb 14 21:29:01 2017 +0000
+++ b/emulators/fceu/distinfo Tue Feb 14 21:29:39 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2015/11/03 20:30:57 agc Exp $
+$NetBSD: distinfo,v 1.10 2017/02/14 21:29:39 joerg Exp $
SHA1 (fceu-0.98.13.src.tar.bz2) = fed37a9858aa8b149472f964b2ca652168e9f29a
RMD160 (fceu-0.98.13.src.tar.bz2) = fc736006ed1e9aa564de817622ed575f246bad48
@@ -8,3 +8,4 @@
SHA1 (patch-ac) = 8a5297b11484c6eaf5d70a391bb486ff58475f35
SHA1 (patch-af) = a2b55359d65c60ecb7e7d79390ef872873c0eba1
SHA1 (patch-ah) = cc48e36406b6d9e4cf88179510824135507aa6f9
+SHA1 (patch-src_file.c) = 6a801513eae47f30eb5f9b7857c7b40b30063129
diff -r 5db46b50d3c5 -r 2dae5317b54a emulators/fceu/patches/patch-src_file.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/fceu/patches/patch-src_file.c Tue Feb 14 21:29:39 2017 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_file.c,v 1.1 2017/02/14 21:29:39 joerg Exp $
+
+Newer zlib expects gzgetc argument to be correctly typed.
+
+--- src/file.c.orig 2017-02-09 16:51:34.243801811 +0000
++++ src/file.c
+@@ -154,7 +154,7 @@ static MEMWRAP *MakeMemWrap(void *tz, in
+ {
+ /* Bleck. The gzip file format has the size of the uncompressed data,
+ but I can't get to the info with the zlib interface(?). */
+- for(tmp->size=0; gzgetc(tz) != EOF; tmp->size++);
++ for(tmp->size=0; gzgetc((gzFile)tz) != EOF; tmp->size++);
+ gzseek(tz,0,SEEK_SET);
+ if(!(tmp->data=(uint8 *)FCEU_malloc(tmp->size)))
+ {
+@@ -529,7 +529,7 @@ int FCEU_read32le(uint32 *Bufo, FCEUFILE
+ int FCEU_fgetc(FCEUFILE *fp)
+ {
+ if(fp->type==1)
+- return gzgetc(fp->fp);
++ return gzgetc((gzFile)fp->fp);
+ else if(fp->type>=2)
+ {
+ MEMWRAP *wz;
+@@ -549,7 +549,7 @@ uint64 FCEU_fgetsize(FCEUFILE *fp)
+ int x,t;
+ t=gztell(fp->fp);
+ gzrewind(fp->fp);
+- for(x=0; gzgetc(fp->fp) != EOF; x++);
++ for(x=0; gzgetc((gzFile)fp->fp) != EOF; x++);
+ gzseek(fp->fp,t,SEEK_SET);
+ return(x);
+ }
Home |
Main Index |
Thread Index |
Old Index