Skip to content

Commit

Permalink
fix(userspace/libsinsp): restore windows build
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Dellaluce <[email protected]>
  • Loading branch information
jasondellaluce committed Jan 30, 2024
1 parent 781ecf8 commit 9cd8d4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 3 additions & 7 deletions userspace/libsinsp/ifinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ limitations under the License.
#include <string>
#include <vector>

#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;
Expand Down Expand Up @@ -85,13 +81,13 @@ class SINSP_PUBLIC sinsp_network_interfaces
std::vector<sinsp_ipv6_ifinfo>* 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<sinsp_ipv4_ifinfo> m_ipv4_interfaces;
std::vector<sinsp_ipv6_ifinfo> m_ipv6_interfaces;
};
Expand Down
2 changes: 0 additions & 2 deletions userspace/libsinsp/test/ifinfo.ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ limitations under the License.
*/

#define VISIBILITY_PRIVATE

#include <libsinsp/sinsp.h>
#include <libsinsp/sinsp_int.h>
#include <libsinsp/ifinfo.h>
Expand Down

0 comments on commit 9cd8d4a

Please sign in to comment.