summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-08-27 14:16:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-08-27 14:20:50 (GMT)
commit4a4001477d29536034ddae272430743ee88cd1c5 (patch)
treeed0232dd82a391036b45fca43757ffa6d12fc7b0 /Source
parent297df45d003bc1084896c2ce9ac35d4ba26c4c6e (diff)
parent1902e39746ba2aaaa3ef1918e3b14d96023966df (diff)
downloadCMake-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.cxx2
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>