summaryrefslogtreecommitdiffstats
path: root/Affinity.h
diff options
context:
space:
mode:
authorChristian Goettsche <cgzones@googlemail.com>2020-11-18 15:12:18 +0100
committerBenBE <BenBE@geshi.org>2020-11-19 23:51:50 +0100
commitf5c3349bdb9cae2eec5adb9892445d3a1b482ec4 (patch)
tree72d2d82c7e2fac5f95205d344a837fa15022e516 /Affinity.h
parent7cf527759481a760b0f08da16add3a5120048572 (diff)
IWYU update (FreeBSD)
Diffstat (limited to 'Affinity.h')
-rw-r--r--Affinity.h13
1 files changed, 9 insertions, 4 deletions
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 <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

© 2014-2024 Faster IT GmbH | imprint | privacy policy