mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
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
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user