pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/emulators/mednafen



Module Name:    pkgsrc
Committed By:   joerg
Date:           Fri Feb 17 17:02:45 UTC 2017

Modified Files:
        pkgsrc/emulators/mednafen: distinfo
Added Files:
        pkgsrc/emulators/mednafen/patches: patch-src_file.cpp

Log Message:
Macros of newer zlib versions don't like the implicit cast from void *,
so be explicit.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 pkgsrc/emulators/mednafen/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/mednafen/patches/patch-src_file.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/mednafen/distinfo
diff -u pkgsrc/emulators/mednafen/distinfo:1.15 pkgsrc/emulators/mednafen/distinfo:1.16
--- pkgsrc/emulators/mednafen/distinfo:1.15     Sat Dec 17 14:24:37 2016
+++ pkgsrc/emulators/mednafen/distinfo  Fri Feb 17 17:02:45 2017
@@ -1,10 +1,11 @@
-$NetBSD: distinfo,v 1.15 2016/12/17 14:24:37 joerg Exp $
+$NetBSD: distinfo,v 1.16 2017/02/17 17:02:45 joerg Exp $
 
 SHA1 (mednafen-0.8.D.3.tar.bz2) = b19b92101853cb653506456fd8ab1c0bb0b6e636
 RMD160 (mednafen-0.8.D.3.tar.bz2) = 546f49a9541ba4d0367fe682aef23cdadf3d7325
 SHA512 (mednafen-0.8.D.3.tar.bz2) = 40c47554ae42025640c754fe4a578f5b6e1adb623418126adca587b2795ae4e6581d6d96ffa497849706a1ea4d11f9962c44df2040ead788670e6314d8a9b7e7
 Size (mednafen-0.8.D.3.tar.bz2) = 2442705 bytes
 SHA1 (patch-src_cdrom_cdromfile.cpp) = 870e5563cc2a0d69826cc8931305aa982303aaf0
+SHA1 (patch-src_file.cpp) = 471e1bbbdd0ca7bf0648810dd16875ab3c70c97f
 SHA1 (patch-src_mempatcher.cpp) = 43fbb9d00948f485dd61594f10a91fc28fdb84eb
 SHA1 (patch-src_nes_ines.cpp) = e9d3a8c151ffe5e21ad5ddef64a7ba4b95e2b851
 SHA1 (patch-src_psf.cpp) = e3e60fd90cbcb0d5dac32e5ab9bfb71f94a879f1

Added files:

Index: pkgsrc/emulators/mednafen/patches/patch-src_file.cpp
diff -u /dev/null pkgsrc/emulators/mednafen/patches/patch-src_file.cpp:1.1
--- /dev/null   Fri Feb 17 17:02:45 2017
+++ pkgsrc/emulators/mednafen/patches/patch-src_file.cpp        Fri Feb 17 17:02:45 2017
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_file.cpp,v 1.1 2017/02/17 17:02:45 joerg Exp $
+
+--- src/file.cpp.orig  2017-02-17 15:57:45.217686812 +0000
++++ src/file.cpp
+@@ -229,7 +229,7 @@ static MDFNFILE *MakeMemWrap(void *tz, i
+    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 @@ static MDFNFILE *MakeMemWrap(void *tz, i
+  }
+  else if(type == MDFN_FILETYPE_GZIP)
+  {
+-  gzclose(tz);
++  gzclose((gzFile)tz);
+  }
+  else if(type == MDFN_FILETYPE_ZIP)
+  {
+@@ -444,7 +444,7 @@ MDFNFILE * MDFN_fopen(const char *path, 
+ 
+    if(!(fceufp = MakeMemWrap(t, 1)))
+    {
+-    gzclose(t);
++    gzclose((gzFile)t);
+     return(0);
+    }
+ 



Home | Main Index | Thread Index | Old Index