From 161a2ccf7af60acf8d04ba5d92f0116f6be19fba Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Aug 2013 17:26:41 +0200 Subject: [PATCH] Fix build on non-Linux http://hydra.nixos.org/build/5662914 --- src/libutil/affinity.cc | 2 ++ 1 file changed, 2 insertions(+) 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)