From 08e90e5a225a059500543620d37a4416b3a8c541 Mon Sep 17 00:00:00 2001 From: CodingCarpincho Date: Mon, 26 May 2025 20:18:32 -0700 Subject: [PATCH] Fix building tests on FreeBSD. The header file sys/sysctl.h needs to imported on FreeBSD in order to get access to the function sysctlbyname. --- tests/dispatch_test.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/dispatch_test.h b/tests/dispatch_test.h index a74da2190..99094ebbf 100644 --- a/tests/dispatch_test.h +++ b/tests/dispatch_test.h @@ -27,6 +27,10 @@ #include #endif +#if defined(__FreeBSD__) +#include +#endif + #define test_group_wait(g) do { \ if (dispatch_group_wait(g, dispatch_time(DISPATCH_TIME_NOW, \ 25ull * NSEC_PER_SEC))) { \