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.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Affinity.h') diff --git a/Affinity.h b/Affinity.h index d28e848b..cf08cce7 100644 --- a/Affinity.h +++ b/Affinity.h @@ -12,7 +12,7 @@ in the source distribution for its full text. #include "ProcessList.h" -#if defined(HAVE_LIBHWLOC) || defined(HAVE_LINUX_AFFINITY) +#if defined(HAVE_LIBHWLOC) || defined(HAVE_AFFINITY) #include #include "Object.h" @@ -20,8 +20,8 @@ in the source distribution for its full text. #endif -#if defined(HAVE_LIBHWLOC) && defined(HAVE_LINUX_AFFINITY) -#error hwloc and linux affinity are mutual exclusive. +#if defined(HAVE_LIBHWLOC) && defined(HAVE_AFFINITY) +#error hwloc and affinity support are mutual exclusive. #endif @@ -38,12 +38,12 @@ void Affinity_delete(Affinity* this); void Affinity_add(Affinity* this, unsigned int id); -#if defined(HAVE_LIBHWLOC) || defined(HAVE_LINUX_AFFINITY) +#if defined(HAVE_LIBHWLOC) || defined(HAVE_AFFINITY) Affinity* Affinity_get(const Process* proc, ProcessList* pl); bool Affinity_set(Process* proc, Arg arg); -#endif /* HAVE_LIBHWLOC || HAVE_LINUX_AFFINITY */ +#endif /* HAVE_LIBHWLOC || HAVE_AFFINITY */ #endif -- cgit v1.2.3