summarylogtreecommitdiffstats
path: root/njam-1.25-gcc45-archlinux.patch
diff options
context:
space:
mode:
authorMarkus Heidelberg2011-10-30 13:13:00 +0100
committerMarkus Heidelberg2015-06-26 10:57:16 +0200
commit212e666d1eb143e171bf1044b3bd4b91320558cf (patch)
tree2105e5710260d1546d56a3720f3f74f67168674a /njam-1.25-gcc45-archlinux.patch
parent029e128568edff26256db5aa6fcfeb9294f60f6c (diff)
downloadaur-212e666d1eb143e171bf1044b3bd4b91320558cf.tar.gz
njam 1.25-7: fix compile errors
Compile errors fixed with a patch from Gentoo. error: cannot call constructor ‘LogFile::LogFile’ directly error: for a function-style cast, remove the redundant ‘::LogFile’ ** Manually imported from AUR 3 **
Diffstat (limited to 'njam-1.25-gcc45-archlinux.patch')
-rw-r--r--njam-1.25-gcc45-archlinux.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/njam-1.25-gcc45-archlinux.patch b/njam-1.25-gcc45-archlinux.patch
new file mode 100644
index 000000000000..763799e7aa28
--- /dev/null
+++ b/njam-1.25-gcc45-archlinux.patch
@@ -0,0 +1,25 @@
+Fix buiding with gcc 4.5
+
+http://bugs.gentoo.org/show_bug.cgi?id=318411
+
+Adapted for Arch Linux.
+--- src/njamedit.cpp
++++ src/njamedit.cpp
+@@ -114,7 +114,7 @@
+ key = SDLK_a;
+ else if (CheckForSave())
+ {
+- LogFile::LogFile("Saving maps");
++ LogFile("Saving maps");
+ m_Maps.Save(filename);
+ level_type_was = level_type;
+ changed = false;
+@@ -139,7 +139,7 @@
+ "levels/%s.%s",
+ #endif
+ filename, types[level_type]);
+- LogFile::LogFile("Saving maps");
++ LogFile("Saving maps");
+ m_Maps.Save(buf);
+ level_type_was = level_type;
+ changed = false;