From 08034454e1e81a933108caab3a764a2bc8c7aa3f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 27 Apr 2021 00:29:37 +0800 Subject: [PATCH] include/compat.h: declare cpu_set_t for MacOS to appease the compiler as it needs to compile numa.cc Signed-off-by: Kefu Chai --- src/include/compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/include/compat.h b/src/include/compat.h index 7537412956673..0d64f55aa9aa7 100644 --- a/src/include/compat.h +++ b/src/include/compat.h @@ -51,6 +51,10 @@ int sched_setaffinity(pid_t pid, size_t cpusetsize, #endif /* __FreeBSD__ */ +#if defined(__APPLE__) +struct cpu_set_t; +#endif + #if defined(__APPLE__) || defined(__FreeBSD__) /* Make sure that ENODATA is defined in the correct way */ #ifdef ENODATA -- 2.39.5