aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/affinity.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/affinity.cc')
-rw-r--r--src/libutil/affinity.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/affinity.cc b/src/libutil/affinity.cc
index 3a20fd277..7a6310cad 100644
--- a/src/libutil/affinity.cc
+++ b/src/libutil/affinity.cc
@@ -9,8 +9,10 @@
namespace nix {
+#if HAVE_SCHED_SETAFFINITY
static bool didSaveAffinity = false;
static cpu_set_t savedAffinity;
+#endif
void setAffinityTo(int cpu)