From 1fb0c720fed4e93f6cfd6cf709a7d7028c3f2836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Sun, 13 Jun 2021 11:29:39 +0200 Subject: Enable affinity support for non-Linux sched_getaffinity() and sched_setaffinity() are also available on BSDs. Remove the Linux restraint. --- Affinity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Affinity.c') diff --git a/Affinity.c b/Affinity.c index d48fc9bf..13f5547c 100644 --- a/Affinity.c +++ b/Affinity.c @@ -22,7 +22,7 @@ in the source distribution for its full text. #else #define HTOP_HWLOC_CPUBIND_FLAG HWLOC_CPUBIND_PROCESS #endif -#elif defined(HAVE_LINUX_AFFINITY) +#elif defined(HAVE_AFFINITY) #include #endif @@ -84,7 +84,7 @@ bool Affinity_set(Process* proc, Arg arg) { return ok; } -#elif defined(HAVE_LINUX_AFFINITY) +#elif defined(HAVE_AFFINITY) Affinity* Affinity_get(const Process* proc, ProcessList* pl) { cpu_set_t cpuset; -- cgit v1.2.3