summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfche <fche>2007-12-11 13:45:28 +0000
committerfche <fche>2007-12-11 13:45:28 +0000
commitb2199bb3837e6b3aacb7ad25d7ed4dca15dd41f7 (patch)
treec5fb59a95504a51a5c7b210fdb5baebd8d7f006e
parentc5a87761a4b7178901c7b83d269023995b4f2f53 (diff)
downloadsystemtap-steved-b2199bb3837e6b3aacb7ad25d7ed4dca15dd41f7.tar.gz
systemtap-steved-b2199bb3837e6b3aacb7ad25d7ed4dca15dd41f7.tar.xz
systemtap-steved-b2199bb3837e6b3aacb7ad25d7ed4dca15dd41f7.zip
PR5017: gcc4.3 build fixes
2007-12-11 Frank Ch. Eigler <fche@elastic.org> * staptree.cxx, staptree.h: More GCC 4.3 build fixes from Eugeniy Meshcheryakov <eugen@debian.org>.
-rw-r--r--ChangeLog5
-rw-r--r--staptree.cxx1
-rw-r--r--staptree.h4
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d446c63b..2333dfc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-12-11 Frank Ch. Eigler <fche@elastic.org>
+
+ * staptree.cxx, staptree.h: More GCC 4.3 build fixes from
+ Eugeniy Meshcheryakov <eugen@debian.org>.
+
2007-12-05 William Cohen <wcohen@redhat.com>
* systemtap.spec.in: Correct Source to point to location contain code.
diff --git a/staptree.cxx b/staptree.cxx
index d0b4a0ed..8cd9ca83 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -15,6 +15,7 @@
#include <typeinfo>
#include <sstream>
#include <cassert>
+#include <cstring>
#include <vector>
#include <algorithm>
diff --git a/staptree.h b/staptree.h
index 9e32d16b..a1a5ebd2 100644
--- a/staptree.h
+++ b/staptree.h
@@ -835,7 +835,7 @@ struct deep_copy_visitor: public visitor
virtual void visit_hist_op (hist_op* e);
};
-template <typename T> static void
+template <typename T> void
require (deep_copy_visitor* v, T* dst, T src)
{
*dst = NULL;
@@ -874,7 +874,7 @@ require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)
}
}
-template <typename T> static void
+template <typename T> void
provide (deep_copy_visitor* v, T src)
{
assert(!v->targets.empty());