summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-11-27 19:42:25 +0000
committerjoerg <joerg@pkgsrc.org>2011-11-27 19:42:25 +0000
commit74ef380ffed569f39a8f82332ff54b4ab015ea0c (patch)
tree1d0fb93861c5b415040e7c0613acb389ddec7022 /games
parent1d7187045e5d266e4e0a6bc313724fb56e583f87 (diff)
downloadpkgsrc-74ef380ffed569f39a8f82332ff54b4ab015ea0c.tar.gz
Fix build with modern GCC
Diffstat (limited to 'games')
-rw-r--r--games/xarchon/distinfo5
-rw-r--r--games/xarchon/patches/patch-an18
-rw-r--r--games/xarchon/patches/patch-src_Xarchon__Problem.cpp11
3 files changed, 27 insertions, 7 deletions
diff --git a/games/xarchon/distinfo b/games/xarchon/distinfo
index c5c64422f8e..4a20363cc44 100644
--- a/games/xarchon/distinfo
+++ b/games/xarchon/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.11 2010/02/14 21:36:26 joerg Exp $
+$NetBSD: distinfo,v 1.12 2011/11/27 19:42:25 joerg Exp $
SHA1 (xarchon-0.60.tar.gz) = e68f79a712a8bff5ca18e5011d1582f7e5196f49
RMD160 (xarchon-0.60.tar.gz) = fdaa7556ee980b004efe4aaae59618fddba8a10b
@@ -16,7 +16,8 @@ SHA1 (patch-aj) = feeca49101109695a09a2e5a526e306659cc7089
SHA1 (patch-ak) = bff38380e7b40161c8135a1d04ee0468a1135991
SHA1 (patch-al) = 55693517ab21d4393b724844f091fc3e6833d764
SHA1 (patch-am) = 619b7e66a072666c499abfde09fe707cd7d06d3f
-SHA1 (patch-an) = f0be4b2d99512c0130c4d1be7bfb99eb6923ff19
+SHA1 (patch-an) = 846c186eacb4dcf6a2143f8d94053ff8daded853
SHA1 (patch-ao) = b472cace00aa8ee151fb9e37ec79b40e2574ea88
SHA1 (patch-ap) = 524ef2d48a6c02f7052199a92c0ece690cb7a51f
SHA1 (patch-aq) = 4612462f01687078255300e6a63c4ee96b34893b
+SHA1 (patch-src_Xarchon__Problem.cpp) = c7577760f1e88c051e72add38b132717dfe68305
diff --git a/games/xarchon/patches/patch-an b/games/xarchon/patches/patch-an
index bce6bf3c1f0..efc1c0fef51 100644
--- a/games/xarchon/patches/patch-an
+++ b/games/xarchon/patches/patch-an
@@ -1,8 +1,16 @@
-$NetBSD: patch-an,v 1.1 2006/04/28 16:23:55 joerg Exp $
+$NetBSD: patch-an,v 1.2 2011/11/27 19:42:25 joerg Exp $
---- src/Genetic.hpp.orig 2006-04-28 16:16:16.000000000 +0000
+--- src/Genetic.hpp.orig 2002-01-09 18:34:33.000000000 +0000
+++ src/Genetic.hpp
-@@ -216,9 +216,9 @@ public:
+@@ -1,6 +1,7 @@
+ #ifndef GENETIC_HPP
+ #define GENETIC_HPP
+
++#include <cstdlib>
+ #include <list>
+ using namespace std;
+
+@@ -216,9 +217,9 @@ public:
virtual Genetic_Operator<T> *Choose_Operator(void)
{
int max=(int)total_op_weight;
@@ -15,7 +23,7 @@ $NetBSD: patch-an,v 1.1 2006/04/28 16:23:55 joerg Exp $
int r=rand()%max;
int count=0;
for (iter=start;iter!=end;iter++) {
-@@ -249,7 +249,7 @@ public:
+@@ -249,7 +250,7 @@ public:
Genetic_Population<T> *newpop=new Genetic_Population<T>(p->size);
int cur_size=0;
while (cur_size<newpop->size) {
@@ -24,7 +32,7 @@ $NetBSD: patch-an,v 1.1 2006/04/28 16:23:55 joerg Exp $
if ( (cur_size+op->NumOfResults())>newpop->size)
continue;
for (i=0;i<op->NumOfOperands();i++) {
-@@ -264,7 +264,7 @@ public:
+@@ -264,7 +265,7 @@ public:
cur_size++;
}
}
diff --git a/games/xarchon/patches/patch-src_Xarchon__Problem.cpp b/games/xarchon/patches/patch-src_Xarchon__Problem.cpp
new file mode 100644
index 00000000000..b8dae1ff27c
--- /dev/null
+++ b/games/xarchon/patches/patch-src_Xarchon__Problem.cpp
@@ -0,0 +1,11 @@
+$NetBSD: patch-src_Xarchon__Problem.cpp,v 1.1 2011/11/27 19:42:25 joerg Exp $
+
+--- src/Xarchon_Problem.cpp.orig 2011-11-27 02:30:20.000000000 +0000
++++ src/Xarchon_Problem.cpp
+@@ -1,5 +1,6 @@
+ #include "Xarchon_Problem.hpp"
+ #include "Xarchon_Interface.hpp"
++#include <cstring>
+
+ Xarchon_State::Xarchon_State(void)
+ {