From 1902e39746ba2aaaa3ef1918e3b14d96023966df Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 26 Aug 2019 09:26:00 -0400 Subject: cmAffinity: Add include for CPU_ZERO on Alpine Linux The definition of `CPU_ZERO` requires `` to be included explicitly for `memset`. Since IWYU does not agree on other Linux platforms, use a pragma to silence the warning. Fixes: #19643 --- Source/cmAffinity.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 # include +// On some platforms CPU_ZERO needs memset but sched.h forgets string.h +# include // IWYU pragma: keep # if defined(__FreeBSD__) # include # include -- cgit v0.12