aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch')
-rw-r--r--meta-oe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch b/meta-oe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch
new file mode 100644
index 0000000000..00cba1023f
--- /dev/null
+++ b/meta-oe/recipes-support/fbreader/fbreader-0.12.10/gcc45.patch
@@ -0,0 +1,20 @@
+ Fix compilation with gcc 4.5
+
+ [FBreader Ticket #340] -- http://old.fbreader.org/mantis/view.php?id=340
+
+ Without that patch we have:
+ Compiling Library.o ...Library.cpp:42:1: error: 'Library::Library' names the constructor, not the type
+
+ Upstream-Status: Accepted [Fixed in Version 0.14.0]
+
+--- fbreader-0.12.10-orig/fbreader/src/library/Library.cpp 2010-04-01 15:14:24.000000000 +0200
++++ fbreader-0.12.10/fbreader/src/library/Library.cpp 2010-04-13 13:34:06.000000000 +0200
+@@ -39,7 +39,7 @@
+ shared_ptr<Library> Library::ourInstance;
+ const size_t Library::MaxRecentListSize = 10;
+
+-Library::Library &Library::Instance() {
++Library &Library::Instance() {
+ if (ourInstance.isNull()) {
+ ourInstance = new Library();
+ }