[packages/ggz-server] - fix building with gcc 4.7
baggins
baggins at pld-linux.org
Sun Nov 18 21:32:59 CET 2012
commit 05eb8bf23e5ff7c8b4b3de3696195241e6a71d39
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Nov 18 21:32:30 2012 +0100
- fix building with gcc 4.7
ggz-server-gcc47.patch | 40 ++++++++++++++++++++++++++++++++++++++++
ggz-server.spec | 2 ++
2 files changed, 42 insertions(+)
---
diff --git a/ggz-server.spec b/ggz-server.spec
index c48d08c..a8a21ff 100644
--- a/ggz-server.spec
+++ b/ggz-server.spec
@@ -15,6 +15,7 @@ Patch1: %{name}-gcc43.patch
Patch2: %{name}-inotify-header.patch
Patch3: %{name}-format-security.patch
Patch4: %{name}-avahi.patch
+Patch5: %{name}-gcc47.patch
URL: http://www.ggzgamingzone.org/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
@@ -82,6 +83,7 @@ Statyczna biblioteka ggz-server.
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
%{__libtoolize}
diff --git a/ggz-server-gcc47.patch b/ggz-server-gcc47.patch
new file mode 100644
index 0000000..34c9d0f
--- /dev/null
+++ b/ggz-server-gcc47.patch
@@ -0,0 +1,40 @@
+--- ggz-server-0.0.14.1/game_servers/muehle/qtserv/qlist.h~ 2008-01-05 20:02:54.000000000 +0100
++++ ggz-server-0.0.14.1/game_servers/muehle/qtserv/qlist.h 2012-11-18 21:30:23.122343215 +0100
+@@ -2,6 +2,7 @@
+ #define QLIST_H
+
+ #include <list>
++#include <cstdlib>
+
+ template<class T> class QList : public std::list<T>
+ {
+--- ggz-server-0.0.14.1/game_servers/muehle/main.cpp~ 2008-01-05 20:02:55.000000000 +0100
++++ ggz-server-0.0.14.1/game_servers/muehle/main.cpp 2012-11-18 21:30:55.195675418 +0100
+@@ -22,6 +22,7 @@
+ #include <iostream>
+ #include <getopt.h>
+ #include <cstdlib>
++#include <cstdio>
+
+ // Version information
+ #define MUEHLE_VERSION "0.1"
+--- ggz-server-0.0.14.1/game_servers/geekgame/main.cpp~ 2008-01-05 20:03:01.000000000 +0100
++++ ggz-server-0.0.14.1/game_servers/geekgame/main.cpp 2012-11-18 21:31:18.402341265 +0100
+@@ -22,6 +22,7 @@
+ #include <iostream>
+ #include <getopt.h>
+ #include <cstdlib>
++#include <cstdio>
+ #include <ctime>
+
+ // Version information
+--- ggz-server-0.0.14.1/game_servers/widelands/main.cpp~ 2008-01-05 20:03:02.000000000 +0100
++++ ggz-server-0.0.14.1/game_servers/widelands/main.cpp 2012-11-18 21:31:43.242340389 +0100
+@@ -22,6 +22,7 @@
+ #include <iostream>
+ #include <getopt.h>
+ #include <cstdlib>
++#include <cstdio>
+ #include <ctime>
+
+ // Version information
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ggz-server.git/commitdiff/a7715b0a0781f7f4ed451beeaf9a020121bcac63
More information about the pld-cvs-commit
mailing list