summaryrefslogtreecommitdiffstats
path: root/patches/glademm-2.6.0
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2008-09-23 14:08:53 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2008-09-23 14:08:53 +0000
commit056ee29875d2ca4f800cafecfa69ad81e8713489 (patch)
tree439522bc560b1c06fb1aab8426fc4fa85bbb7a19 /patches/glademm-2.6.0
parent8204712917ba893fcf1e82db585861c3c72bfef2 (diff)
downloadptxdist-056ee29875d2ca4f800cafecfa69ad81e8713489.tar.gz
ptxdist-056ee29875d2ca4f800cafecfa69ad81e8713489.tar.xz
* glademm: add patch to compile with g++-4.3
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8880 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'patches/glademm-2.6.0')
-rw-r--r--patches/glademm-2.6.0/generic/fix-for-new-gcc.diff78
-rw-r--r--patches/glademm-2.6.0/generic/series1
2 files changed, 79 insertions, 0 deletions
diff --git a/patches/glademm-2.6.0/generic/fix-for-new-gcc.diff b/patches/glademm-2.6.0/generic/fix-for-new-gcc.diff
new file mode 100644
index 000000000..eca5a3708
--- /dev/null
+++ b/patches/glademm-2.6.0/generic/fix-for-new-gcc.diff
@@ -0,0 +1,78 @@
+Subject: include and namespace fixes for a stricter compiler
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+
+g++-4.3 is a lot stricter with respect to the C++ standard.
+This patch adds various includes that used to be implicit.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ src/Tag.hh | 1 +
+ src/TagStream.cc | 7 ++++---
+ src/writers/WriterBase.hh | 1 +
+ src/writers/xpmname.cc | 1 +
+ 4 files changed, 7 insertions(+), 3 deletions(-)
+
+Index: b/src/writers/WriterBase.hh
+===================================================================
+--- a/src/writers/WriterBase.hh
++++ b/src/writers/WriterBase.hh
+@@ -22,6 +22,7 @@
+ #define WRITER_BASE_HH
+ #include <safemap.hh>
+ #include <string>
++#include <string.h>
+ #include "../Enums.hh"
+ // these are not necessary for all widgets,
+ // but it's convenient to have them defined
+Index: b/src/Tag.hh
+===================================================================
+--- a/src/Tag.hh
++++ b/src/Tag.hh
+@@ -23,6 +23,7 @@
+ #include <config.h>
+ #endif
+ #include <string>
++#include <string.h>
+ #include <vector>
+ #include <algorithm> // for find
+ #include <stdexcept>
+Index: b/src/writers/xpmname.cc
+===================================================================
+--- a/src/writers/xpmname.cc
++++ b/src/writers/xpmname.cc
+@@ -1,5 +1,6 @@
+ #include <cstdio>
+ #include <string>
++#include <string.h>
+ #include <Configuration.hh>
+
+ // parts taken from
+Index: b/src/TagStream.cc
+===================================================================
+--- a/src/TagStream.cc
++++ b/src/TagStream.cc
+@@ -18,9 +18,10 @@
+ */
+
+ #include "TagStream.hh"
++#include <iostream>
+ #include <cstring>
++#include <algorithm>
+ #include <unistd.h>
+-#include <algo.h>
+
+ //#define REMEMBER_EMPTY_SPACE
+
+@@ -73,10 +74,10 @@ std::string TagStream::de_xml(const std:
+ { std::string ret;
+ std::string::const_iterator i(cont.begin());
+ while (i!=cont.end())
+- { std::string::const_iterator verbatim(::find(i,cont.end(),'&'));
++ { std::string::const_iterator verbatim(std::find(i,cont.end(),'&'));
+ ret+=std::string(i,verbatim);
+ if (verbatim!=cont.end())
+- { std::string::const_iterator endtag(::find(verbatim,cont.end(),';'));
++ { std::string::const_iterator endtag(std::find(verbatim,cont.end(),';'));
+ if (endtag!=cont.end()) ++endtag;
+ std::string tag(verbatim,endtag);
+ if (tag[1]=='#' && tag[2]=='x')
diff --git a/patches/glademm-2.6.0/generic/series b/patches/glademm-2.6.0/generic/series
index 6f820d836..29b0a3a1a 100644
--- a/patches/glademm-2.6.0/generic/series
+++ b/patches/glademm-2.6.0/generic/series
@@ -7,3 +7,4 @@ fix-alignment-writer.diff
gettext-param.diff
gwt-support.diff
autoreconf.diff
+fix-for-new-gcc.diff