Skip to content

Commit 08e90e5

Browse files
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.
1 parent 089b658 commit 08e90e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/dispatch_test.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
#include <generic_win_port.h>
2828
#endif
2929

30+
#if defined(__FreeBSD__)
31+
#include <sys/sysctl.h>
32+
#endif
33+
3034
#define test_group_wait(g) do { \
3135
if (dispatch_group_wait(g, dispatch_time(DISPATCH_TIME_NOW, \
3236
25ull * NSEC_PER_SEC))) { \

0 commit comments

Comments
 (0)