summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-08-07 17:26:41 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-08-07 17:26:41 +0200
commit161a2ccf7af60acf8d04ba5d92f0116f6be19fba (patch)
treef65432d72de5092ea6da6a85ca340751f4259512
parenta583a2bc59a4ee2b067e5520f6c5bc0c61852c32 (diff)
downloadguix-161a2ccf7af60acf8d04ba5d92f0116f6be19fba.tar.gz
Fix build on non-Linux
http://hydra.nixos.org/build/5662914
-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 3a20fd2774..7a6310cadb 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)