From: Kefu Chai Date: Mon, 26 Apr 2021 16:29:37 +0000 (+0800) Subject: include/compat.h: declare cpu_set_t for MacOS X-Git-Tag: v17.1.0~2082^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=08034454e1e81a933108caab3a764a2bc8c7aa3f;p=ceph.git 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 --- 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