diff options
author | Brad King <brad.king@kitware.com> | 2019-08-27 14:16:42 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-27 14:20:50 (GMT) |
commit | 4a4001477d29536034ddae272430743ee88cd1c5 (patch) | |
tree | ed0232dd82a391036b45fca43757ffa6d12fc7b0 /Source | |
parent | 297df45d003bc1084896c2ce9ac35d4ba26c4c6e (diff) | |
parent | 1902e39746ba2aaaa3ef1918e3b14d96023966df (diff) | |
download | CMake-4a4001477d29536034ddae272430743ee88cd1c5.zip CMake-4a4001477d29536034ddae272430743ee88cd1c5.tar.gz CMake-4a4001477d29536034ddae272430743ee88cd1c5.tar.bz2 |
Merge topic 'alpine-cpu_zero'
1902e39746 cmAffinity: Add include for CPU_ZERO on Alpine Linux
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3740
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmAffinity.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmAffinity.cxx b/Source/cmAffinity.cxx index 588b2f2..09b0298 100644 --- a/Source/cmAffinity.cxx +++ b/Source/cmAffinity.cxx @@ -12,6 +12,8 @@ # define CM_HAVE_CPU_AFFINITY # include <pthread.h> # include <sched.h> +// On some platforms CPU_ZERO needs memset but sched.h forgets string.h +# include <string.h> // IWYU pragma: keep # if defined(__FreeBSD__) # include <pthread_np.h> # include <sys/cpuset.h> |