From e3eb9f4485c3caa72ce26c00554dfad15f5839ef Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 4 Jun 2024 20:06:56 +0000 Subject: [PATCH] fix(userspace/libsinsp): Include cri.hpp in container.cpp Include cri.hpp in container.cpp in order to avoid ``` /usr/bin/ld: /usr/lib/aarch64-linux-gnu/libsinsp.so: undefined reference to `libsinsp::cri::cri_interface::get_cri_runtime_type() const' collect2: error: ld returned 1 exit status ``` when building with shared libs on Linux. Signed-off-by: Gerald Combs --- userspace/libsinsp/container.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/userspace/libsinsp/container.cpp b/userspace/libsinsp/container.cpp index b28855eddd..bee446b386 100644 --- a/userspace/libsinsp/container.cpp +++ b/userspace/libsinsp/container.cpp @@ -20,6 +20,7 @@ limitations under the License. #if !defined(MINIMAL_BUILD) && !defined(__EMSCRIPTEN__) #include +#include #ifndef _WIN32 #include #include