$OpenBSD: patch-src_cpp_core_system_PosixSched_cpp,v 1.1.1.1 2020/07/01 18:10:07 bcallah Exp $

We're macOS in this scenario.

Index: src/cpp/core/system/PosixSched.cpp
--- src/cpp/core/system/PosixSched.cpp.orig
+++ src/cpp/core/system/PosixSched.cpp
@@ -41,7 +41,7 @@ bool isCpuAffinityEmpty(const CpuAffinity& cpus)
 
 Error getCpuAffinity(CpuAffinity* pCpus)
 {
-#ifndef __APPLE__
+#ifndef __OpenBSD__
    cpu_set_t cs;
    CPU_ZERO(&cs);
    if (::sched_getaffinity(0, sizeof(cs), &cs) == -1)
@@ -66,7 +66,7 @@ Error getCpuAffinity(CpuAffinity* pCpus)
 
 Error setCpuAffinity(const CpuAffinity& cpus)
 {
-#ifndef __APPLE__
+#ifndef __OpenBSD__
    cpu_set_t cs;
    CPU_ZERO(&cs);
 
