diff --git a/userspace/libscap/engine/savefile/converter/converter.cpp b/userspace/libscap/engine/savefile/converter/converter.cpp index 70e6283ff6..774c28c0b6 100644 --- a/userspace/libscap/engine/savefile/converter/converter.cpp +++ b/userspace/libscap/engine/savefile/converter/converter.cpp @@ -26,6 +26,7 @@ limitations under the License. #include #include #include +#include typedef std::shared_ptr safe_scap_evt_t; @@ -36,8 +37,6 @@ static inline safe_scap_evt_t safe_scap_evt(scap_evt *evt) { // use a shared pointer to store the events static std::unordered_map evt_storage = {}; -extern const struct ppm_event_info g_event_info[]; - static const char *get_event_name(ppm_event_code event_type) { const struct ppm_event_info *event_info = &g_event_info[event_type]; return event_info->name; diff --git a/userspace/libscap/engine/savefile/converter/converter.h b/userspace/libscap/engine/savefile/converter/converter.h index 338486b103..7c8cab11db 100644 --- a/userspace/libscap/engine/savefile/converter/converter.h +++ b/userspace/libscap/engine/savefile/converter/converter.h @@ -25,6 +25,9 @@ extern "C" { #include typedef struct ppm_evt_hdr scap_evt; +struct ppm_event_info; + +extern const struct ppm_event_info g_event_info[]; // 50 consecutive conversions on the same event should be more than enough #define MAX_CONVERSION_BOUNDARY 50