From 737d0d86fabc3583a423a03925f49ef68e7d9661 Mon Sep 17 00:00:00 2001 From: Thefrank <1910378+Thefrank@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:35:12 -0600 Subject: [PATCH 1/2] Add missing includes for FreeBSD 14 --- src/native/libs/System.Native/pal_networkstatistics.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/native/libs/System.Native/pal_networkstatistics.c b/src/native/libs/System.Native/pal_networkstatistics.c index bfa1cc50074be..64d3f9c5cd2e0 100644 --- a/src/native/libs/System.Native/pal_networkstatistics.c +++ b/src/native/libs/System.Native/pal_networkstatistics.c @@ -59,6 +59,10 @@ #elif HAVE_IOS_NETINET_IP_VAR_H #include "ios/netinet/ip_var.h" #endif +#ifdef (__FreeBSD__) +#include +#include +#endif #include #include #if HAVE_TCP_FSM_H From 022450883275a7695953611bce49f344df8e19cb Mon Sep 17 00:00:00 2001 From: Thefrank <1910378+Thefrank@users.noreply.github.com> Date: Fri, 7 Jun 2024 14:35:12 -0600 Subject: [PATCH 2/2] Add missing includes for FreeBSD 14 --- src/native/libs/System.Native/pal_networkstatistics.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/native/libs/System.Native/pal_networkstatistics.c b/src/native/libs/System.Native/pal_networkstatistics.c index bfa1cc50074be..27d3220e163a5 100644 --- a/src/native/libs/System.Native/pal_networkstatistics.c +++ b/src/native/libs/System.Native/pal_networkstatistics.c @@ -59,6 +59,10 @@ #elif HAVE_IOS_NETINET_IP_VAR_H #include "ios/netinet/ip_var.h" #endif +#ifdef __FreeBSD__ +#include +#include +#endif #include #include #if HAVE_TCP_FSM_H