diff options
author | Christian Goettsche <cgzones@googlemail.com> | 2020-11-18 15:12:18 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-11-19 23:51:50 +0100 |
commit | f5c3349bdb9cae2eec5adb9892445d3a1b482ec4 (patch) | |
tree | 72d2d82c7e2fac5f95205d344a837fa15022e516 /Affinity.h | |
parent | 7cf527759481a760b0f08da16add3a5120048572 (diff) |
IWYU update (FreeBSD)
Diffstat (limited to 'Affinity.h')
-rw-r--r-- | Affinity.h | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 <stdbool.h> #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 |