summaryrefslogtreecommitdiff
path: root/emulators/fceu/patches
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2004-08-22 11:56:46 +0000
committerkristerw <kristerw@pkgsrc.org>2004-08-22 11:56:46 +0000
commit7aac302d4f55ae0e67e6e1f2c2608d25e95c9568 (patch)
tree73b2b3f1d9b6ab145c52c14a4a30a82e73c61dd1 /emulators/fceu/patches
parent1d9f8a50486b0c71f247aa235fddbde69e0c7099 (diff)
downloadpkgsrc-7aac302d4f55ae0e67e6e1f2c2608d25e95c9568.tar.gz
Convert some C99-isms to C89 to make this build with gcc 2.95.
Diffstat (limited to 'emulators/fceu/patches')
-rw-r--r--emulators/fceu/patches/patch-ae21
1 files changed, 21 insertions, 0 deletions
diff --git a/emulators/fceu/patches/patch-ae b/emulators/fceu/patches/patch-ae
new file mode 100644
index 00000000000..260e0ccc9e8
--- /dev/null
+++ b/emulators/fceu/patches/patch-ae
@@ -0,0 +1,21 @@
+$NetBSD: patch-ae,v 1.1 2004/08/22 11:56:46 kristerw Exp $
+
+--- src/movie.c.orig Sun Aug 22 13:44:10 2004
++++ src/movie.c Sun Aug 22 13:44:49 2004
+@@ -154,6 +154,7 @@
+
+ void FCEUMOV_AddJoy(uint8 *js)
+ {
++ int tmpfix;
+ int x,y;
+
+ if(!current) return; /* Not playback nor recording. */
+@@ -190,7 +191,7 @@
+ tmp >>= 5;
+ tmp &= 0x3;
+ ti=0;
+- int tmpfix = tmp;
++ tmpfix = tmp;
+ while(tmp--) { nextts |= fgetc(slots[-1 - current]) << (ti * 8); ti++; }
+
+ // This fixes a bug in movies recorded before version 0.98.11