Skip to content

Commit 4029973

Browse files
Merge pull request #876 from CodingCarpincho/freebsd-test-fix
[FreeBSD] Fix building tests on FreeBSD.
2 parents 089b658 + 08e90e5 commit 4029973

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)