* updated krdc (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / develop / log4cpp / hotfix-gcc41.patch
blob488096403db5be9272d23bb9fbab76b6707a4a01
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../log4cpp/gcc41.patch
5 # Copyright (C) 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 include <memory> for the declaration of auto_ptr.
18 abs() for integers is not defined in <cmath>, but in <cstdlib>
20 --- log4cpp-1.0/src/BasicLayout.cpp.vanilla 2008-08-21 23:50:15.000000000 +0200
21 +++ log4cpp-1.0/src/BasicLayout.cpp 2008-08-21 23:50:37.000000000 +0200
22 @@ -15,6 +15,8 @@
23 #include <sstream>
24 #endif
26 +#include <memory>
28 namespace log4cpp {
30 BasicLayout::BasicLayout() {
31 --- log4cpp-1.0/src/PatternLayout.cpp.vanilla 2008-08-21 23:34:28.000000000 +0200
32 +++ log4cpp-1.0/src/PatternLayout.cpp 2008-08-21 23:34:49.000000000 +0200
33 @@ -21,6 +21,7 @@
34 #include <strstream>
35 #endif
37 +#include <cstdlib>
38 #include <iomanip>
39 #include <ctime>
40 #include <cmath>