From 3879f584eea4a7042d354b3f6c78eccef396bdd3 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Tue, 3 Oct 2023 15:53:07 +0200 Subject: [PATCH] fix: fix windows build Signed-off-by: Andrea Terzolo --- userspace/libsinsp/threadinfo.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/userspace/libsinsp/threadinfo.cpp b/userspace/libsinsp/threadinfo.cpp index 3d4e5fa9a4e..cfec222b33f 100644 --- a/userspace/libsinsp/threadinfo.cpp +++ b/userspace/libsinsp/threadinfo.cpp @@ -838,6 +838,7 @@ void sinsp_threadinfo::set_pod_uid() return; } +#ifndef _WIN32 // If `this->cgroups()` is not empty we should have at least the first element // An example of `this->cgroups()[0].second` layout is: // /kubelet.slice/kubelet-kubepods.slice/kubelet-kubepods-pod1b011081_6e8e_4839_b225_4685eae5fd59.slice/cri-containerd-2f92446a3fbfd0b7a73457b45e96c75a25c5e44e7b1bcec165712b906551c261.scope @@ -858,6 +859,7 @@ void sinsp_threadinfo::set_pod_uid() // The final `pod_uid` layout is: // 05869489-8c7f-45dc-9abd-1b1620787bb1 +#endif } sinsp_fdinfo_t* sinsp_threadinfo::add_fd(int64_t fd, sinsp_fdinfo_t *fdinfo)