summaryrefslogtreecommitdiffstats
path: root/libraries/log4cpp/gcc43.patch
diff options
context:
space:
mode:
author Pedro Mendes <pedro@gepasi.org>2016-10-27 06:25:45 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-27 06:25:45 +0700
commit3f9ddd95ec4146eea3855277f745e13c2d669418 (patch)
tree95e96758420ca1bc3419b21a20e4d7599b17a822 /libraries/log4cpp/gcc43.patch
parentab3d963c00ff9271df4980233320f809f0cf1a75 (diff)
downloadslackbuilds-3f9ddd95ec4146eea3855277f745e13c2d669418.tar.gz
slackbuilds-3f9ddd95ec4146eea3855277f745e13c2d669418.tar.xz
libraries/log4cpp: Added (library of C++ classes for logging).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/log4cpp/gcc43.patch')
-rw-r--r--libraries/log4cpp/gcc43.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/libraries/log4cpp/gcc43.patch b/libraries/log4cpp/gcc43.patch
new file mode 100644
index 0000000000..a60f986e9c
--- /dev/null
+++ b/libraries/log4cpp/gcc43.patch
@@ -0,0 +1,26 @@
+Index: log4cpp-1.0/src/BasicLayout.cpp
+===================================================================
+--- log4cpp-1.0.orig/src/BasicLayout.cpp 2008-03-14 16:06:57.000000000 -0400
++++ log4cpp-1.0/src/BasicLayout.cpp 2008-03-14 16:07:11.000000000 -0400
+@@ -15,6 +15,8 @@
+ #include <sstream>
+ #endif
+
++#include <memory>
++
+ namespace log4cpp {
+
+ BasicLayout::BasicLayout() {
+Index: log4cpp-1.0/src/PatternLayout.cpp
+===================================================================
+--- log4cpp-1.0.orig/src/PatternLayout.cpp 2008-03-14 16:07:33.000000000 -0400
++++ log4cpp-1.0/src/PatternLayout.cpp 2008-03-14 16:07:49.000000000 -0400
+@@ -370,7 +370,7 @@
+ literal = "";
+ }
+ if ((minWidth != 0) || (maxWidth != 0)) {
+- component = new FormatModifierComponent(component, std::abs(minWidth), maxWidth, minWidth < 0);
++ component = new FormatModifierComponent(component, std::abs((float)minWidth), maxWidth, minWidth < 0);
+ minWidth = maxWidth = 0;
+ }
+ _components.push_back(component);