Index: src/cpu-profiler.h |
diff --git a/src/cpu-profiler.h b/src/cpu-profiler.h |
index 7c838fd2513b42df3bd9e291dacac019ae063dc0..7a3711ddf54637b581a6641429cc6a1f7f3565ed 100644 |
--- a/src/cpu-profiler.h |
+++ b/src/cpu-profiler.h |
@@ -110,6 +110,10 @@ class TickSampleEventRecord { |
TickSample sample; |
unsigned order; |
+#if defined(__GNUC__) && (__GNUC__ < 4) |
+ // Added to avoid 'all member functions in class are private' error. |
+ INLINE(unsigned get_order() const) { return order; } |
+#endif |
private: |
// Disable instantiation. |
TickSampleEventRecord(); |