chore: polish conditional compilation flags for emscripten

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
Jason Dellaluce
2023-08-11 13:10:04 +00:00
committed by poiana
parent aa62b65c70
commit 527c42c030
12 changed files with 35 additions and 38 deletions

View File

@@ -769,10 +769,7 @@ void falco_engine::get_json_evt_types(libsinsp::filter::ast::expr* ast,
{
output = Json::arrayValue;
auto evtcodes = libsinsp::filter::ast::ppm_event_codes(ast);
libsinsp::events::set<ppm_sc_code> syscodes;
#ifdef __linux__
syscodes = libsinsp::filter::ast::ppm_sc_codes(ast);
#endif
auto syscodes = libsinsp::filter::ast::ppm_sc_codes(ast);
auto syscodes_to_evt_names = libsinsp::events::sc_set_to_event_names(syscodes);
auto evtcodes_to_evt_names = libsinsp::events::event_set_to_names(evtcodes, false);
for (const auto& n : unordered_set_union(syscodes_to_evt_names, evtcodes_to_evt_names))