aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTzvetomir (VMware) Stoyanov <tz.stoyanov@gmail.com>2021-02-05 13:12:42 +0200
committerYordan Karadzhov (VMware) <y.karadz@gmail.com>2021-02-17 14:09:59 +0200
commitf05e3e75bd95cb7e0e5849899d70fd6aeb24f5cc (patch)
tree79e1c4ab36cf7cd481dc83af088d108a026856e2
parent330665c07e353327c73316a19aa8ca08f262d6f1 (diff)
downloadkernel-shark-f05e3e75bd95cb7e0e5849899d70fd6aeb24f5cc.tar.gz
kernel-shark: Fix compile error: ‘string’ in namespace ‘std’ does not name a type
There is a compilation error when compiling KernelShark on Fedora 33 with c++ (GCC) 10.2.1: src/KsPlotTools.hpp:349:37: error: ‘string’ in namespace ‘std’ does not name a type "string" should be included in that header file, as it is a direct dependency. Link: https://lore.kernel.org/linux-trace-devel/20210205111242.57557-1-tz.stoyanov@gmail.com Signed-off-by: Tzvetomir (VMware) Stoyanov <tz.stoyanov@gmail.com> Reviewed-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com> Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
-rw-r--r--src/KsPlotTools.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/KsPlotTools.hpp b/src/KsPlotTools.hpp
index 1725926f..68bd6f7a 100644
--- a/src/KsPlotTools.hpp
+++ b/src/KsPlotTools.hpp
@@ -15,6 +15,7 @@
// C++
#include <forward_list>
#include <unordered_map>
+#include <string>
// KernelShark
#include "libkshark.h"