]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
include/compat.h: declare cpu_set_t for MacOS
authorKefu Chai <kchai@redhat.com>
Mon, 26 Apr 2021 16:29:37 +0000 (00:29 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 2 May 2021 00:16:12 +0000 (08:16 +0800)
to appease the compiler as it needs to compile numa.cc

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/compat.h

index 7537412956673f9be5729da9e2540dbaab43a415..0d64f55aa9aa7728e09dda7372a3996b4c0ec160 100644 (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