@@ -1,80 +0,0 @@
1−diff -aur zsnes_1_51//src/Makefile.in zsnes_1_51_new//src/Makefile.in
2−--- zsnes_1_51//src/Makefile.in 2007-01-24 21:54:12.000000000 +0100
3−+++ zsnes_1_51_new//src/Makefile.in 2010-09-06 00:03:04.715810431 +0200
4−@@ -95,7 +95,7 @@
5− %.o: %.cpp
6− @CXX@ @CXXFLAGS@ -o $@ -c $<
7− %.o %.h: %.psr $(PSR)
8−- ./$(PSR) @PSRFLAGS@ -gcc @CC@ -compile -flags "@CFLAGS@ -O1" -cheader $*.h -fname $* $*.o $<
9−+ ./$(PSR) @PSRFLAGS@ -gcc "@CC@" -compile -flags "@CFLAGS@ -O1 -D_FORTIFY_SOURCE=0" -cheader $*.h -fname $* $*.o $<
10−
11− default: main
12− all: main tools
13−@@ -133,7 +133,7 @@
14−
15− include makefile.dep
16− makefile.dep: $(TOOL_D)/depbuild Makefile
17−- $(TOOL_D)/depbuild @CC@ "@CFLAGS@" @NASMPATH@ "@NFLAGS@" $(Z_OBJS) > makefile.dep
18−+ $(TOOL_D)/depbuild "@CC@" "@CFLAGS@" "@NASMPATH@" "@NFLAGS@" $(Z_OBJS) > makefile.dep
19−
20− Makefile: Makefile.in config.status
21− ./config.status
22−diff -aur zsnes_1_51//src/parsegen.cpp zsnes_1_51_new//src/parsegen.cpp
23−--- zsnes_1_51//src/parsegen.cpp 2007-10-31 05:30:26.000000000 +0100
24−+++ zsnes_1_51_new//src/parsegen.cpp 2010-09-05 15:48:36.903333444 +0200
25−@@ -19,6 +19,9 @@
26− Config file handler creator by Nach (C) 2005-2007
27− */
28−
29−+#include <cstring>
30−+#include <cstdlib>
31−+
32− #if !defined(__GNUC__) && !defined(_MSC_VER)
33− #error You are using an unsupported compiler
34− #endif
35−@@ -1822,7 +1825,7 @@
36− }
37− }
38−
39−-int main(size_t argc, const char *const *const argv)
40−+int main(int argc, const char *const *const argv)
41− {
42− const char *cheader_file = 0;
43− bool compile = false;
44−diff -aur zsnes_1_51//src/tools/depbuild.cpp zsnes_1_51_new//src/tools/depbuild.cpp
45−--- zsnes_1_51//src/tools/depbuild.cpp 2006-12-27 12:04:05.000000000 +0100
46−+++ zsnes_1_51_new//src/tools/depbuild.cpp 2010-09-05 15:48:36.903333444 +0200
47−@@ -183,7 +183,7 @@
48− }
49− }
50−
51−-int main(size_t argc, const char *const *const argv)
52−+int main(int argc, const char *const *const argv)
53− {
54− if (argc < 5)
55− {
56−diff -aur zsnes_1_51//src/tools/strutil.h zsnes_1_51_new//src/tools/strutil.h
57−--- zsnes_1_51//src/tools/strutil.h 2006-12-27 12:04:05.000000000 +0100
58−+++ zsnes_1_51_new//src/tools/strutil.h 2010-09-05 15:48:36.903333444 +0200
59−@@ -15,6 +15,9 @@
60− Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
61− */
62−
63−+#include <cstring>
64−+#include <cstdlib>
65−+
66− /*
67− This is part of a toolkit used to assist in ZSNES development
68− */
69−diff -u -r zsnes_1_51/src/tools/depbuild.cpp zsnes_1_51-fix/src/tools/depbuild.cpp
70−--- zsnes_1_51/src/tools/depbuild.cpp 2006-12-27 12:04:05.000000000 +0100
71−+++ zsnes_1_51-fix/src/tools/depbuild.cpp 2012-07-14 16:20:17.759886250 +0200
72−@@ -26,6 +26,8 @@
73− #include <cstdio>
74− using namespace std;
75−
76−+#include <unistd.h>
77−+
78− #include "fileutil.h"
79− #include "strutil.h"
80−