From 145041ec75eae1e58fcd3f784964303fb75c16d5 Mon Sep 17 00:00:00 2001 From: Augusto Caringi Date: Wed, 5 Feb 2020 15:24:21 +0100 Subject: [PATCH] Add missing include to btf.h The missing include was causing building problems with gcc 10.0.1: In file included from /builddir/build/BUILD/bpftrace-0.9.4/src/btf.cpp:1: /builddir/build/BUILD/bpftrace-0.9.4/src/btf.h:26:8: error: 'string' in namespace 'std' does not name a type 26 | std::string c_def(std::unordered_set& set); | ^~~~~~ /builddir/build/BUILD/bpftrace-0.9.4/src/btf.h:7:1: note: 'std::string' is defined in header ''; did you forget to '#include '? 6 | #include +++ |+#include 7 | --- src/btf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/btf.h b/src/btf.h index 05b56ff..8856bfc 100644 --- a/src/btf.h +++ b/src/btf.h @@ -1,6 +1,7 @@ #pragma once #include +#include #include #include -- 2.21.1