Explorar el Código

Merge branch 'alpine-cpu_zero' into release-3.15

Merge-request: !3740
Brad King hace 6 años
padre
commit
1d68639654
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      Source/cmAffinity.cxx

+ 2 - 0
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>