diff options
author | Brad King <brad.king@kitware.com> | 2021-09-29 15:25:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-09-29 16:31:49 (GMT) |
commit | 096450f8080f3bec2498a44e47604e37d4aa4eb2 (patch) | |
tree | d61a4f6364383ac4901b1ae341ed47ed50dea6ec /Utilities | |
parent | 5bd94332c760a6f861b411273921b204076ab9a6 (diff) | |
download | CMake-096450f8080f3bec2498a44e47604e37d4aa4eb2.zip CMake-096450f8080f3bec2498a44e47604e37d4aa4eb2.tar.gz CMake-096450f8080f3bec2498a44e47604e37d4aa4eb2.tar.bz2 |
libuv: Include BSD sys/cpuset.h only on platforms where we use it
Since commit 43d6e5a71f (libuv: misc: add function to get CPU affinity
mask size, 2017-09-06, v3.12.0-rc1~412^2~3) we include `<sys/cpuset.h>`
on several BSD platforms but only use it on FreeBSD.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmlibuv/src/unix/core.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Utilities/cmlibuv/src/unix/core.c b/Utilities/cmlibuv/src/unix/core.c index e6d61ee..4245e02 100644 --- a/Utilities/cmlibuv/src/unix/core.c +++ b/Utilities/cmlibuv/src/unix/core.c @@ -72,8 +72,6 @@ extern char** environ; # include <sys/sysctl.h> # include <sys/filio.h> # include <sys/wait.h> -# include <sys/param.h> -# include <sys/cpuset.h> # if defined(__FreeBSD__) # define uv__accept4 accept4 # endif @@ -82,6 +80,11 @@ extern char** environ; # endif #endif +#if defined(__FreeBSD__) +# include <sys/param.h> +# include <sys/cpuset.h> +#endif + #if defined(__MVS__) #include <sys/ioctl.h> #endif |