From 98186f1d474b5dcc2cd32d5b6d7194c2ec385b5d Mon Sep 17 00:00:00 2001 From: Ulf Samuelsson Date: Wed, 21 Jan 2009 00:27:11 +0000 Subject: [PATCH] add patch form cgicc'upstream, build now completes\! --- .../cgicc-3.2.7-sort-undeclared.patch | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 package/libcgicc/cgicc-3.2.7-sort-undeclared.patch diff --git a/package/libcgicc/cgicc-3.2.7-sort-undeclared.patch b/package/libcgicc/cgicc-3.2.7-sort-undeclared.patch new file mode 100644 index 0000000000..c6e04ba8fb --- /dev/null +++ b/package/libcgicc/cgicc-3.2.7-sort-undeclared.patch @@ -0,0 +1,38 @@ +From: Robert Schwebel +Subject: [patch] sort is now in + +When built with gcc-4.3.2, cgicc-3.2.7 cannot be compiled any more; sort +is now being part of and must be written as ::sort: + +cardgame.cpp:1232: error: 'sort' was not declared in this scope +make[2]: *** [cardgame.o] Error 1 + +Fix it. + +Signed-off-by: Robert Schwebel + +--- + demo/cardgame.cpp | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +Index: cgicc-3.2.7/demo/cardgame.cpp +=================================================================== +--- cgicc-3.2.7.orig/demo/cardgame.cpp ++++ cgicc-3.2.7/demo/cardgame.cpp +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + + #include "cgicc/CgiDefs.h" + #include "cgicc/Cgicc.h" +@@ -1043,7 +1044,7 @@ namespace CardGameTools + + void drawPlayerCards(datasplayer *vPlayer) + { +- sort (vPlayer->cardsList->begin(),vPlayer->cardsList->end()); ++ std::sort (vPlayer->cardsList->begin(),vPlayer->cardsList->end()); + cout <<"
"; + cout <<""; + cout <<""; -- 2.30.2