Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Emulators
zsnes
0003-gcc-4.3-ftbfs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-gcc-4.3-ftbfs.patch of Package zsnes
From: Etienne Millon <etienne.millon@gmail.com> Date: Tue, 2 Nov 2010 17:04:53 +0100 Subject: gcc-4.3-ftbfs Miscellaneous fixes to build with gcc 4.3: - missing headers - argc should have type int, not size_t --- src/parsegen.cpp | 3 ++- src/tools/depbuild.cpp | 3 ++- src/tools/strutil.h | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/parsegen.cpp b/src/parsegen.cpp index e664dc5..9f78fb4 100644 --- a/src/parsegen.cpp +++ b/src/parsegen.cpp @@ -26,6 +26,7 @@ Config file handler creator by Nach (C) 2005-2007 #include <iostream> #include <fstream> #include <string> +#include <cstring> #include <vector> #include <algorithm> #include <sstream> @@ -1822,7 +1823,7 @@ void parser_generate(istream& psr_stream, ostream& c_stream, ostream& cheader_st } } -int main(size_t argc, const char *const *const argv) +int main(int argc, const char *const *const argv) { const char *cheader_file = 0; bool compile = false; diff --git a/src/tools/depbuild.cpp b/src/tools/depbuild.cpp index 5c332c4..1e4bbc5 100644 --- a/src/tools/depbuild.cpp +++ b/src/tools/depbuild.cpp @@ -24,6 +24,7 @@ This program generates dependencies for all C/C++/Assembly files #include <iostream> #include <string> #include <cstdio> +#include <cstdlib> using namespace std; #include "fileutil.h" @@ -183,7 +184,7 @@ void dependency_calculate(const char *filename, struct stat& stat_buffer) } } -int main(size_t argc, const char *const *const argv) +int main(int argc, const char *const *const argv) { if (argc < 5) { diff --git a/src/tools/strutil.h b/src/tools/strutil.h index cd32638..850f944 100644 --- a/src/tools/strutil.h +++ b/src/tools/strutil.h @@ -23,6 +23,7 @@ This is part of a toolkit used to assist in ZSNES development #define STRUTIL_H #include <string> +#include <cstring> #include <vector> #include <cctype>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor