blob: 945060970e53feac14566968c534ae67a09ba0a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
Fix build on FreeBSD
__unix__ is defined on FreeBSD and makes #elif __FreeBSD__ section skipped
--- test/common/utils_concurrency_limit.h.orig 2021-10-04 09:50:18 UTC
+++ test/common/utils_concurrency_limit.h
@@ -37,12 +37,11 @@
#endif
#include <string.h>
#include <sched.h>
-#elif __FreeBSD__
-#include <unistd.h>
+#if __FreeBSD__
#include <errno.h>
-#include <string.h>
#include <sys/param.h>
#include <sys/cpuset.h>
+#endif
#endif
#include <thread>
|