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 <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-04-27 00:29:37 +08:00
parent d34aae8c86
commit 08034454e1

View File

@ -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