summaryrefslogtreecommitdiffstats
path: root/fastos
diff options
context:
space:
mode:
Diffstat (limited to 'fastos')
-rw-r--r--fastos/src/vespa/fastos/unix_thread.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/fastos/src/vespa/fastos/unix_thread.cpp b/fastos/src/vespa/fastos/unix_thread.cpp
index 9e48727deb3..3fcba5e61b1 100644
--- a/fastos/src/vespa/fastos/unix_thread.cpp
+++ b/fastos/src/vespa/fastos/unix_thread.cpp
@@ -5,7 +5,9 @@
#include <unistd.h>
namespace {
+#ifdef __linux__
std::atomic_size_t _G_nextCpuId(0);
+#endif
volatile size_t _G_maxNumCpus=0; // Non zero means use cpu pinning.
}