From 9cd8d4adf1bca99eb14d2ee332edb12e92e5db37 Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Tue, 30 Jan 2024 10:08:31 +0000 Subject: [PATCH] fix(userspace/libsinsp): restore windows build Signed-off-by: Jason Dellaluce --- userspace/libsinsp/ifinfo.h | 10 +++------- userspace/libsinsp/test/ifinfo.ut.cpp | 2 -- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/userspace/libsinsp/ifinfo.h b/userspace/libsinsp/ifinfo.h index c8612730131..b0675d53fc0 100644 --- a/userspace/libsinsp/ifinfo.h +++ b/userspace/libsinsp/ifinfo.h @@ -26,10 +26,6 @@ limitations under the License. #include #include -#ifndef VISIBILITY_PRIVATE -#define VISIBILITY_PRIVATE private: -#endif - typedef struct scap_addrlist scap_addrlist; typedef struct scap_ifinfo_ipv4 scap_ifinfo_ipv4; typedef struct scap_ifinfo_ipv6 scap_ifinfo_ipv6; @@ -85,13 +81,13 @@ class SINSP_PUBLIC sinsp_network_interfaces std::vector* get_ipv6_list(); inline void clear(); - ipv6addr m_ipv6_loopback_addr; - -VISIBILITY_PRIVATE uint32_t infer_ipv4_address(uint32_t destination_address); void import_ipv4_ifaddr_list(uint32_t count, scap_ifinfo_ipv4* plist); ipv6addr infer_ipv6_address(ipv6addr &destination_address); void import_ipv6_ifaddr_list(uint32_t count, scap_ifinfo_ipv6* plist); + +private: + ipv6addr m_ipv6_loopback_addr; std::vector m_ipv4_interfaces; std::vector m_ipv6_interfaces; }; diff --git a/userspace/libsinsp/test/ifinfo.ut.cpp b/userspace/libsinsp/test/ifinfo.ut.cpp index ebe754e316a..49280e49a8d 100644 --- a/userspace/libsinsp/test/ifinfo.ut.cpp +++ b/userspace/libsinsp/test/ifinfo.ut.cpp @@ -16,8 +16,6 @@ limitations under the License. */ -#define VISIBILITY_PRIVATE - #include #include #include