From e7e868bb9dca1c11c83ea56d4bccee9f1440403a Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Sun, 4 Oct 2020 00:20:02 +0200 Subject: Define _G_nextCpuId only on linux --- fastos/src/vespa/fastos/unix_thread.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fastos/src') 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 namespace { +#ifdef __linux__ std::atomic_size_t _G_nextCpuId(0); +#endif volatile size_t _G_maxNumCpus=0; // Non zero means use cpu pinning. } -- cgit v1.2.3