From f5c3349bdb9cae2eec5adb9892445d3a1b482ec4 Mon Sep 17 00:00:00 2001 From: Christian Goettsche Date: Wed, 18 Nov 2020 15:12:18 +0100 Subject: IWYU update (FreeBSD) --- Affinity.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Affinity.h') diff --git a/Affinity.h b/Affinity.h index 0797b366..97c8e466 100644 --- a/Affinity.h +++ b/Affinity.h @@ -8,18 +8,23 @@ Released under the GNU GPLv2, see the COPYING file in the source distribution for its full text. */ -#include "config.h" +#include "config.h" // IWYU pragma: keep +#include "ProcessList.h" + +#if defined(HAVE_LIBHWLOC) || defined(HAVE_LINUX_AFFINITY) #include #include "Object.h" #include "Process.h" -#include "ProcessList.h" +#endif + #if defined(HAVE_LIBHWLOC) && defined(HAVE_LINUX_AFFINITY) -#error hwlock and linux affinity are mutual exclusive. +#error hwloc and linux affinity are mutual exclusive. #endif + typedef struct Affinity_ { ProcessList* pl; int size; @@ -39,6 +44,6 @@ Affinity* Affinity_get(Process* proc, ProcessList* pl); bool Affinity_set(Process* proc, Arg arg); -#endif +#endif /* HAVE_LIBHWLOC || HAVE_LINUX_AFFINITY */ #endif -- cgit v1.2.3