summaryrefslogtreecommitdiffstats
path: root/Action.c
diff options
context:
space:
mode:
Diffstat (limited to 'Action.c')
-rw-r--r--Action.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Action.c b/Action.c
index edaebc66..ef7caaf4 100644
--- a/Action.c
+++ b/Action.c
@@ -13,8 +13,6 @@ in the source distribution for its full text.
#include <stdbool.h>
#include <stdlib.h>
-#include "Affinity.h"
-#include "AffinityPanel.h"
#include "CategoriesPanel.h"
#include "CommandScreen.h"
#include "CRT.h"
@@ -36,6 +34,11 @@ in the source distribution for its full text.
#include "Vector.h"
#include "XUtils.h"
+#if (defined(HAVE_LIBHWLOC) || defined(HAVE_LINUX_AFFINITY))
+#include "Affinity.h"
+#include "AffinityPanel.h"
+#endif
+
Object* Action_pickFromVector(State* st, Panel* list, int x, bool followProcess) {
Panel* panel = st->panel;